chore: en -> en-US
This commit is contained in:
parent
62b9b5d527
commit
d719942931
2
.github/workflows/crowdin.yaml
vendored
2
.github/workflows/crowdin.yaml
vendored
@ -24,7 +24,7 @@ jobs:
|
||||
download_translations: true
|
||||
project_id: 458284
|
||||
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN_SECRET }}
|
||||
source: 'src/locales/en.po'
|
||||
source: 'src/locales/en-US.po'
|
||||
translation: 'src/locales/%locale%.po'
|
||||
pull_request_title: "chore(i18n): synchronize translations from Crowdin"
|
||||
env:
|
||||
|
@ -7,15 +7,15 @@ export default {
|
||||
],
|
||||
compileNamespace: 'cjs',
|
||||
fallbackLocales: {
|
||||
default: 'en',
|
||||
default: 'en-US',
|
||||
},
|
||||
format: 'po',
|
||||
formatOptions: {
|
||||
lineNumbers: false,
|
||||
},
|
||||
locales: ['en'],
|
||||
locales: ['en-US'],
|
||||
orderBy: 'messageId',
|
||||
rootDir: '.',
|
||||
runtimeConfigModule: ['@lingui/core', 'i18n'],
|
||||
sourceLocale: 'en',
|
||||
sourceLocale: 'en-US',
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
export const SUPPORTED_LOCALES = ['en'] as const
|
||||
export const SUPPORTED_LOCALES = ['en-US'] as const
|
||||
export type SupportedLocale = typeof SUPPORTED_LOCALES[number]
|
||||
|
||||
export const DEFAULT_LOCALE: SupportedLocale = 'en'
|
||||
export const DEFAULT_LOCALE: SupportedLocale = 'en-US'
|
||||
|
||||
export const LOCALE_LABEL: { [locale in SupportedLocale]: string } = {
|
||||
en: 'English',
|
||||
'en-US': 'English',
|
||||
}
|
||||
|
@ -6,7 +6,9 @@ import useParsedQueryString from './useParsedQueryString'
|
||||
/**
|
||||
* Mapping from locales without region (e.g. es) to the default region specific locale (e.g. es-US)
|
||||
*/
|
||||
const MAPPED_DEFAULT_LOCALES: { [localeWithoutRegion: string]: SupportedLocale } = {}
|
||||
const MAPPED_DEFAULT_LOCALES: { [localeWithoutRegion: string]: SupportedLocale } = {
|
||||
en: 'en-US',
|
||||
}
|
||||
|
||||
/**
|
||||
* Given a locale string (e.g. from user agent), return the best match for corresponding SupportedLocale
|
||||
|
@ -1666,4 +1666,3 @@ msgstr ""
|
||||
#: src/pages/Pool/PositionPage.tsx
|
||||
msgid "← Back to Pools Overview"
|
||||
msgstr ""
|
||||
|
||||
|
1663
src/locales/en.po
1663
src/locales/en.po
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user