chore: en -> en-US

This commit is contained in:
Moody Salem 2021-05-28 23:15:07 -05:00
parent 62b9b5d527
commit d719942931
No known key found for this signature in database
GPG Key ID: 8CB5CD10385138DB
6 changed files with 10 additions and 1672 deletions

@ -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 ""

File diff suppressed because it is too large Load Diff