Commit d7199429 authored by Moody Salem's avatar Moody Salem

chore: en -> en-US

parent 62b9b5d5
...@@ -24,7 +24,7 @@ jobs: ...@@ -24,7 +24,7 @@ jobs:
download_translations: true download_translations: true
project_id: 458284 project_id: 458284
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN_SECRET }} token: ${{ secrets.CROWDIN_PERSONAL_TOKEN_SECRET }}
source: 'src/locales/en.po' source: 'src/locales/en-US.po'
translation: 'src/locales/%locale%.po' translation: 'src/locales/%locale%.po'
pull_request_title: "chore(i18n): synchronize translations from Crowdin" pull_request_title: "chore(i18n): synchronize translations from Crowdin"
env: env:
......
...@@ -7,15 +7,15 @@ export default { ...@@ -7,15 +7,15 @@ export default {
], ],
compileNamespace: 'cjs', compileNamespace: 'cjs',
fallbackLocales: { fallbackLocales: {
default: 'en', default: 'en-US',
}, },
format: 'po', format: 'po',
formatOptions: { formatOptions: {
lineNumbers: false, lineNumbers: false,
}, },
locales: ['en'], locales: ['en-US'],
orderBy: 'messageId', orderBy: 'messageId',
rootDir: '.', rootDir: '.',
runtimeConfigModule: ['@lingui/core', 'i18n'], 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 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 } = { export const LOCALE_LABEL: { [locale in SupportedLocale]: string } = {
en: 'English', 'en-US': 'English',
} }
...@@ -6,7 +6,9 @@ import useParsedQueryString from './useParsedQueryString' ...@@ -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) * 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 * Given a locale string (e.g. from user agent), return the best match for corresponding SupportedLocale
......
...@@ -1666,4 +1666,3 @@ msgstr "" ...@@ -1666,4 +1666,3 @@ msgstr ""
#: src/pages/Pool/PositionPage.tsx #: src/pages/Pool/PositionPage.tsx
msgid "← Back to Pools Overview" msgid "← Back to Pools Overview"
msgstr "" 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