Romanian localization (#6456)

* Empty

* First pass

* More colloquial Romanian

* Add Romanian lanaguage

* Romanian specfic plural with 3 variants

* Adjustments

* Chat > Conversație

* Keep code alphabetical order

* Update messages.po

* Add 'ro' to app.config.js

* Regenerate and finish RO

* Update messages.po

* Fixing a previous wrong conflict resolution

* Adapt after #6742

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>

---------

Co-authored-by: Alex <alextec70@outlook.com>
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
This commit is contained in:
Claudiu Cristea
2024-12-19 01:24:38 +02:00
committed by GitHub
parent 2d1a5e71ab
commit afd338b0f3
8 changed files with 8634 additions and 0 deletions
+1
View File
@@ -91,6 +91,7 @@ module.exports = function (config) {
'nl',
'pl',
'pt-BR',
'ro',
'ru',
'th',
'tr',
+1
View File
@@ -21,6 +21,7 @@ module.exports = {
'nl',
'pl',
'pt-BR',
'ro',
'ru',
'th',
'tr',
+2
View File
@@ -26,6 +26,7 @@ import {
nl,
pl,
ptBR,
ro,
ru,
th,
tr,
@@ -63,6 +64,7 @@ const locales: Record<AppLanguage, Locale | undefined> = {
nl,
pl,
['pt-BR']: ptBR,
ro,
ru,
th,
tr,
+2
View File
@@ -157,6 +157,8 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage {
return AppLanguage.pl
case 'pt-BR':
return AppLanguage.pt_BR
case 'ro':
return AppLanguage.ro
case 'ru':
return AppLanguage.ru
case 'th':
+10
View File
@@ -33,6 +33,7 @@ import {messages as messagesKo} from '#/locale/locales/ko/messages'
import {messages as messagesNl} from '#/locale/locales/nl/messages'
import {messages as messagesPl} from '#/locale/locales/pl/messages'
import {messages as messagesPt_BR} from '#/locale/locales/pt-BR/messages'
import {messages as messagesRo} from '#/locale/locales/ro/messages'
import {messages as messagesRu} from '#/locale/locales/ru/messages'
import {messages as messagesTh} from '#/locale/locales/th/messages'
import {messages as messagesTr} from '#/locale/locales/tr/messages'
@@ -219,6 +220,15 @@ export async function dynamicActivate(locale: AppLanguage) {
])
break
}
case AppLanguage.ro: {
i18n.loadAndActivate({locale, messages: messagesRo})
await Promise.all([
import('@formatjs/intl-datetimeformat/locale-data/ro'),
import('@formatjs/intl-pluralrules/locale-data/ro'),
import('@formatjs/intl-numberformat/locale-data/ro'),
])
break
}
case AppLanguage.ru: {
i18n.loadAndActivate({locale, messages: messagesRu})
await Promise.all([
+4
View File
@@ -88,6 +88,10 @@ export async function dynamicActivate(locale: AppLanguage) {
mod = await import(`./locales/pt-BR/messages`)
break
}
case AppLanguage.ro: {
mod = await import(`./locales/ro/messages`)
break
}
case AppLanguage.ru: {
mod = await import(`./locales/ru/messages`)
break
+2
View File
@@ -25,6 +25,7 @@ export enum AppLanguage {
nl = 'nl',
pl = 'pl',
pt_BR = 'pt-BR',
ro = 'ro',
ru = 'ru',
th = 'th',
tr = 'tr',
@@ -61,6 +62,7 @@ export const APP_LANGUAGES: AppLanguageConfig[] = [
{code2: AppLanguage.nl, name: 'Nederlands Dutch'},
{code2: AppLanguage.pl, name: 'Polski Polish'},
{code2: AppLanguage.pt_BR, name: 'Português (BR) Portuguese (BR)'},
{code2: AppLanguage.ro, name: 'Română Romanian'},
{code2: AppLanguage.ru, name: 'Русский Russian'},
{code2: AppLanguage.th, name: 'ภาษาไทย Thai'},
{code2: AppLanguage.tr, name: 'Türkçe Turkish'},
File diff suppressed because it is too large Load Diff