Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
d7199429
Unverified
Commit
d7199429
authored
May 28, 2021
by
Moody Salem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: en -> en-US
parent
62b9b5d5
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
1672 deletions
+10
-1672
crowdin.yaml
.github/workflows/crowdin.yaml
+1
-1
lingui.config.ts
lingui.config.ts
+3
-3
locales.ts
src/constants/locales.ts
+3
-3
useActiveLocale.ts
src/hooks/useActiveLocale.ts
+3
-1
en-US.po
src/locales/en-US.po
+0
-1
en.po
src/locales/en.po
+0
-1663
No files found.
.github/workflows/crowdin.yaml
View file @
d7199429
...
...
@@ -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
:
...
...
lingui.config.ts
View file @
d7199429
...
...
@@ -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
'
,
}
src/constants/locales.ts
View file @
d7199429
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
'
,
}
src/hooks/useActiveLocale.ts
View file @
d7199429
...
...
@@ -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
...
...
src/locales/en-US.po
View file @
d7199429
...
...
@@ -1666,4 +1666,3 @@ msgstr ""
#: src/pages/Pool/PositionPage.tsx
msgid "← Back to Pools Overview"
msgstr ""
src/locales/en.po
deleted
100644 → 0
View file @
62b9b5d5
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment