Add language: Frisian (#8214)
* Update app.config.js * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts * Create messages.po
This commit is contained in:
@@ -79,6 +79,7 @@ module.exports = function (_config) {
|
||||
'eu',
|
||||
'fi',
|
||||
'fr',
|
||||
'fy',
|
||||
'ga',
|
||||
'gd',
|
||||
'gl',
|
||||
|
||||
@@ -15,6 +15,7 @@ module.exports = {
|
||||
'eu',
|
||||
'fi',
|
||||
'fr',
|
||||
'fy',
|
||||
'ga',
|
||||
'gd',
|
||||
'gl',
|
||||
|
||||
@@ -21,6 +21,7 @@ import {
|
||||
eu,
|
||||
fi,
|
||||
fr,
|
||||
fy,
|
||||
gd,
|
||||
gl,
|
||||
hi,
|
||||
@@ -66,6 +67,7 @@ const locales: Record<AppLanguage, Locale | undefined> = {
|
||||
eu,
|
||||
fi,
|
||||
fr,
|
||||
fy,
|
||||
ga: undefined,
|
||||
gd,
|
||||
gl,
|
||||
|
||||
@@ -181,6 +181,8 @@ export function sanitizeAppLanguageSetting(appLanguage: string): AppLanguage {
|
||||
return AppLanguage.fi
|
||||
case 'fr':
|
||||
return AppLanguage.fr
|
||||
case 'fy':
|
||||
return AppLanguage.fy
|
||||
case 'ga':
|
||||
return AppLanguage.ga
|
||||
case 'gd':
|
||||
|
||||
@@ -25,6 +25,7 @@ import {messages as messagesEs} from '#/locale/locales/es/messages'
|
||||
import {messages as messagesEu} from '#/locale/locales/eu/messages'
|
||||
import {messages as messagesFi} from '#/locale/locales/fi/messages'
|
||||
import {messages as messagesFr} from '#/locale/locales/fr/messages'
|
||||
import {messages as messagesFy} from '#/locale/locales/fy/messages'
|
||||
import {messages as messagesGa} from '#/locale/locales/ga/messages'
|
||||
import {messages as messagesGd} from '#/locale/locales/gd/messages'
|
||||
import {messages as messagesGl} from '#/locale/locales/gl/messages'
|
||||
@@ -161,6 +162,14 @@ export async function dynamicActivate(locale: AppLanguage) {
|
||||
])
|
||||
break
|
||||
}
|
||||
case AppLanguage.fy: {
|
||||
i18n.loadAndActivate({locale, messages: messagesFy})
|
||||
await Promise.all([
|
||||
import('@formatjs/intl-pluralrules/locale-data/fy'),
|
||||
import('@formatjs/intl-numberformat/locale-data/fy'),
|
||||
])
|
||||
break
|
||||
}
|
||||
case AppLanguage.ga: {
|
||||
i18n.loadAndActivate({locale, messages: messagesGa})
|
||||
await Promise.all([
|
||||
|
||||
@@ -64,6 +64,10 @@ export async function dynamicActivate(locale: AppLanguage) {
|
||||
mod = await import(`./locales/fr/messages`)
|
||||
break
|
||||
}
|
||||
case AppLanguage.fy: {
|
||||
mod = await import(`./locales/fy/messages`)
|
||||
break
|
||||
}
|
||||
case AppLanguage.ga: {
|
||||
mod = await import(`./locales/ga/messages`)
|
||||
break
|
||||
|
||||
@@ -19,6 +19,7 @@ export enum AppLanguage {
|
||||
eu = 'eu',
|
||||
fi = 'fi',
|
||||
fr = 'fr',
|
||||
fy = 'fy',
|
||||
ga = 'ga',
|
||||
gd = 'gd',
|
||||
gl = 'gl',
|
||||
@@ -66,6 +67,7 @@ export const APP_LANGUAGES: AppLanguageConfig[] = [
|
||||
{code2: AppLanguage.eu, name: 'Euskera – Basque'},
|
||||
{code2: AppLanguage.fi, name: 'Suomi – Finnish'},
|
||||
{code2: AppLanguage.fr, name: 'Français – French'},
|
||||
{code2: AppLanguage.fy, name: 'Frysk – Frisian'},
|
||||
{code2: AppLanguage.ga, name: 'Gaeilge – Irish'},
|
||||
{code2: AppLanguage.gd, name: 'Gàidhlig – Scottish Gaelic'},
|
||||
{code2: AppLanguage.gl, name: 'Galego – Galician'},
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"POT-Creation-Date: 2023-11-05 16:01-0800\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: @lingui/cli\n"
|
||||
"Language: fy\n"
|
||||
"Project-Id-Version: 49a8cb746fbc2ae5707392ee41ddec4c\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2025-04-17 20:00\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: Frisian\n"
|
||||
Reference in New Issue
Block a user