Commit d7199429 authored by Moody Salem's avatar Moody Salem

chore: en -> en-US

parent 62b9b5d5
......@@ -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',
}
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 ""
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment