zio/stable
Paul Frazee 2024-03-19 13:04:06 -07:00
commit 5dc41eb0d9
7 changed files with 4855 additions and 3 deletions

View File

@ -4,6 +4,7 @@ module.exports = {
'en', 'en',
'de', 'de',
'es', 'es',
'fi',
'fr', 'fr',
'hi', 'hi',
'id', 'id',

View File

@ -122,6 +122,8 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage {
return AppLanguage.de return AppLanguage.de
case 'es': case 'es':
return AppLanguage.es return AppLanguage.es
case 'fi':
return AppLanguage.fi
case 'fr': case 'fr':
return AppLanguage.fr return AppLanguage.fr
case 'hi': case 'hi':

View File

@ -6,6 +6,7 @@ import {messages as messagesEn} from '#/locale/locales/en/messages'
import {messages as messagesDe} from '#/locale/locales/de/messages' import {messages as messagesDe} from '#/locale/locales/de/messages'
import {messages as messagesId} from '#/locale/locales/id/messages' import {messages as messagesId} from '#/locale/locales/id/messages'
import {messages as messagesEs} from '#/locale/locales/es/messages' import {messages as messagesEs} from '#/locale/locales/es/messages'
import {messages as messagesFi} from '#/locale/locales/fi/messages'
import {messages as messagesFr} from '#/locale/locales/fr/messages' import {messages as messagesFr} from '#/locale/locales/fr/messages'
import {messages as messagesHi} from '#/locale/locales/hi/messages' import {messages as messagesHi} from '#/locale/locales/hi/messages'
import {messages as messagesJa} from '#/locale/locales/ja/messages' import {messages as messagesJa} from '#/locale/locales/ja/messages'
@ -32,6 +33,10 @@ export async function dynamicActivate(locale: AppLanguage) {
i18n.loadAndActivate({locale, messages: messagesEs}) i18n.loadAndActivate({locale, messages: messagesEs})
break break
} }
case AppLanguage.fi: {
i18n.loadAndActivate({locale, messages: messagesFi})
break
}
case AppLanguage.fr: { case AppLanguage.fr: {
i18n.loadAndActivate({locale, messages: messagesFr}) i18n.loadAndActivate({locale, messages: messagesFr})
break break

View File

@ -19,6 +19,10 @@ export async function dynamicActivate(locale: AppLanguage) {
case AppLanguage.es: { case AppLanguage.es: {
mod = await import(`./locales/es/messages`) mod = await import(`./locales/es/messages`)
break break
}
case AppLanguage.fi: {
mod = await import(`./locales/fi/messages`)
break
} }
case AppLanguage.fr: { case AppLanguage.fr: {
mod = await import(`./locales/fr/messages`) mod = await import(`./locales/fr/messages`)

View File

@ -8,6 +8,7 @@ export enum AppLanguage {
en = 'en', en = 'en',
de = 'de', de = 'de',
es = 'es', es = 'es',
fi = 'fi',
fr = 'fr', fr = 'fr',
hi = 'hi', hi = 'hi',
id = 'id', id = 'id',
@ -29,6 +30,7 @@ export const APP_LANGUAGES: AppLanguageConfig[] = [
{code2: AppLanguage.en, name: 'English'}, {code2: AppLanguage.en, name: 'English'},
{code2: AppLanguage.de, name: 'Deutsch German'}, {code2: AppLanguage.de, name: 'Deutsch German'},
{code2: AppLanguage.es, name: 'Español Spanish'}, {code2: AppLanguage.es, name: 'Español Spanish'},
{code2: AppLanguage.fi, name: 'Suomi Finnish'},
{code2: AppLanguage.fr, name: 'Français French'}, {code2: AppLanguage.fr, name: 'Français French'},
{code2: AppLanguage.hi, name: 'हिंदी Hindi'}, {code2: AppLanguage.hi, name: 'हिंदी Hindi'},
{code2: AppLanguage.id, name: 'Bahasa Indonesia Indonesian'}, {code2: AppLanguage.id, name: 'Bahasa Indonesia Indonesian'},

View File

@ -4395,8 +4395,8 @@ msgstr ""
msgid "Unmute thread" msgid "Unmute thread"
msgstr "" msgstr ""
#: src/view/screens/ProfileFeed.tsx:354 #: src/view/screens/ProfileFeed.tsx:353
#: src/view/screens/ProfileList.tsx:581 #: src/view/screens/ProfileList.tsx:580
msgid "Unpin" msgid "Unpin"
msgstr "" msgstr ""
@ -4915,4 +4915,4 @@ msgstr ""
#: src/view/com/auth/create/Step2.tsx:65 #: src/view/com/auth/create/Step2.tsx:65
msgid "Your user handle" msgid "Your user handle"
msgstr "" msgstr ""

File diff suppressed because it is too large Load Diff