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
408a07eb
Unverified
Commit
408a07eb
authored
May 29, 2021
by
Moody Salem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try extracting en-US.po only in the github workflow
parent
7f837810
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
1785 deletions
+15
-1785
crowdin.yaml
.github/workflows/crowdin.yaml
+12
-0
.gitignore
.gitignore
+1
-0
package.json
package.json
+1
-2
useActiveLocale.ts
src/hooks/useActiveLocale.ts
+1
-1
en-US.po
src/locales/en-US.po
+0
-1782
No files found.
.github/workflows/crowdin.yaml
View file @
408a07eb
...
@@ -17,6 +17,18 @@ jobs:
...
@@ -17,6 +17,18 @@ jobs:
-
name
:
Checkout
-
name
:
Checkout
uses
:
actions/checkout@v2
uses
:
actions/checkout@v2
-
name
:
Set up node
uses
:
actions/setup-node@v2
with
:
node-version
:
14
registry-url
:
https://registry.npmjs.org
-
name
:
Install dependencies
run
:
yarn install --frozen-lockfile
-
name
:
Extract translations
run
:
"
yarn
lingui
extract
--locale
en-US"
-
name
:
Synchronize
-
name
:
Synchronize
uses
:
crowdin/github-action@1.1.0
uses
:
crowdin/github-action@1.1.0
with
:
with
:
...
...
.gitignore
View file @
408a07eb
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
/src/locales/**/*.js
/src/locales/**/*.js
/src/locales/**/*.ts
/src/locales/**/*.ts
/src/locales/**/*.json
/src/locales/**/*.json
/src/locales/**/en-US.po
# dependencies
# dependencies
/node_modules
/node_modules
...
...
package.json
View file @
408a07eb
...
@@ -126,8 +126,7 @@
...
@@ -126,8 +126,7 @@
"compile-contract-types"
:
"yarn compile-external-abi-types && yarn compile-v3-contract-types"
,
"compile-contract-types"
:
"yarn compile-external-abi-types && yarn compile-v3-contract-types"
,
"compile-external-abi-types"
:
"typechain --target ethers-v5 --out-dir src/abis/types './src/abis/**/*.json'"
,
"compile-external-abi-types"
:
"typechain --target ethers-v5 --out-dir src/abis/types './src/abis/**/*.json'"
,
"compile-v3-contract-types"
:
"typechain --target ethers-v5 --out-dir src/types/v3 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json'"
,
"compile-v3-contract-types"
:
"typechain --target ethers-v5 --out-dir src/types/v3 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json'"
,
"build"
:
"yarn compile-contract-types yarn i18n:extract && yarn i18n:compile && react-scripts build"
,
"build"
:
"yarn compile-contract-types && yarn i18n:compile && react-scripts build"
,
"i18n:extract"
:
"lingui extract --locale en-US --overwrite"
,
"i18n:compile"
:
"lingui compile"
,
"i18n:compile"
:
"lingui compile"
,
"integration-test"
:
"start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress run'"
,
"integration-test"
:
"start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress run'"
,
"postinstall"
:
"yarn compile-contract-types"
,
"postinstall"
:
"yarn compile-contract-types"
,
...
...
src/hooks/useActiveLocale.ts
View file @
408a07eb
...
@@ -10,7 +10,7 @@ import useParsedQueryString from './useParsedQueryString'
...
@@ -10,7 +10,7 @@ import useParsedQueryString from './useParsedQueryString'
function
parseLocale
(
maybeSupportedLocale
:
string
):
SupportedLocale
|
undefined
{
function
parseLocale
(
maybeSupportedLocale
:
string
):
SupportedLocale
|
undefined
{
const
lowerMaybeSupportedLocale
=
maybeSupportedLocale
.
toLowerCase
()
const
lowerMaybeSupportedLocale
=
maybeSupportedLocale
.
toLowerCase
()
return
SUPPORTED_LOCALES
.
find
(
return
SUPPORTED_LOCALES
.
find
(
(
locale
)
=>
locale
.
toLowerCase
()
===
lowerMaybeSupportedLocale
||
locale
.
s
lice
(
0
,
2
)
===
lowerMaybeSupportedLocale
(
locale
)
=>
locale
.
toLowerCase
()
===
lowerMaybeSupportedLocale
||
locale
.
s
plit
(
'
-
'
)[
0
]
===
lowerMaybeSupportedLocale
)
)
}
}
...
...
src/locales/en-US.po
deleted
100644 → 0
View file @
7f837810
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