-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React i18next #8866
Merged
Merged
React i18next #8866
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
1798fe5
Revert "Merge pull request #8786 from ethereum/revert-i18n-pr"
pettinarip 5c330b8
update queries to fetch the corresponding namespaces
pettinarip 3c1a6cc
remove dynamic translation keys
pettinarip 8f4b43e
update queries to fetch the corresponding namespaces
pettinarip 8a038cc
add i18n scanner
pettinarip e150efd
create ts script to scan & extract translation strings
pettinarip 5b5c9ca
update translation queries for the templates
pettinarip d411fce
simplify namespace generation function
pettinarip 078c967
fix replaceAll function
pettinarip 32ae184
remove log
pettinarip b6d19df
fix types
pettinarip b202358
add documentation on createLocales script
pettinarip 6f6f62d
Merge branch 'dev' into i18n-extract-strings
pettinarip eda0cff
docs: explain locales generation process
pettinarip f724fd8
Merge branch 'dev' into i18n-extract-strings
pettinarip e752dff
adapt Trilemma to use new intl lib
pettinarip 04550c1
Merge branch 'dev' into i18n-extract-strings
pettinarip d259ecd
fix hydration issue using new intl lib
pettinarip ae5d9fb
clean locales folder before creating the new locales again
pettinarip ca4c74b
preserve the defaultLang values when merging the intl json files
pettinarip cfade8c
Apply suggestions from code review
pettinarip d2931e8
fix issues from pr review
pettinarip 472174d
update page queries
pettinarip 1121f54
create locales
pettinarip 8dc9886
generate locales only for supported languages
pettinarip 789376b
delete mergeTranslations script
pettinarip e3c74c2
bump i18n deps
pettinarip 6cc04d0
reorder translations
pettinarip 43cab21
add script to detect unused translation keys
pettinarip 03d7f9e
remove unused translations
pettinarip 2c5ad4f
cleanup common namespace
pettinarip 78f9e15
add docs
pettinarip 9b9e5c6
turn on lowerCaseLng flag to be able to use zh-TW and pt-BR
pettinarip de72e68
fix tutorials links
pettinarip 6447f1b
update translation
pettinarip 966f4b0
Merge branch 'dev' into i18n-extract-strings
pettinarip 886fb46
fixes after merging
pettinarip 3746e62
Merge branch 'i18n-extract-strings' into i18n-rework
pettinarip 9789abf
update yarn.lock
pettinarip f174d3a
update languages.json translations
pettinarip e3aab9d
regenerate yarn.lock
pettinarip 76f1e98
fix Breadcrumbs
pettinarip 38e2f37
change translation key for learn hub title
pettinarip d0a9fdf
update docs
pettinarip d0cf89f
remove deps
pettinarip 1f715d4
reorder translations
pettinarip ec415b5
add translations for learning quizzes
pettinarip 344fa22
reorg translations
pettinarip 71f234d
add script to reorg intl translations
pettinarip 8385f4b
add missing translations
pettinarip a9ed184
Merge branch 'dev' into i18n-extract-strings
pettinarip b9195e2
install new deps
pettinarip dd3f0ae
Merge branch 'dev' into i18n-extract-strings
pettinarip 1978a39
Merge branch 'i18n-extract-strings' into i18n-rework
pettinarip b07066e
regenerate yarn.lock
pettinarip c0db325
add locales query on new templates
pettinarip 30efac1
run reorg-intl
pettinarip 69a045d
Merge pull request #9261 from ethereum/i18n-rework
pettinarip f51ca6b
Merge branch 'dev' into i18n-extract-strings
pettinarip 8918fdc
Merge branch 'dev' into i18n-extract-strings
pettinarip a595c0c
Merge branch 'dev' into i18n-extract-strings
pettinarip 027ecef
fixes
pettinarip 307c758
Merge branch 'dev' into i18n-extract-strings
pettinarip a1259ba
Merge branch 'dev' into i18n-extract-strings
pettinarip d9342b0
remove unused gatsby-ssr file
pettinarip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Locales generation process | ||
|
||
Every time `yarn build` or `yarn start` is executed, the following process is | ||
going to be triggered as well: | ||
|
||
<img src="./locales.png"> | ||
|
||
With this process, we reduce the amount of text we bundle on each page since we | ||
are querying only the necessary translations that each page needs. | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit of context on how the whole process works. Would appreciate any feedback on this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also a recommended thing to read first that will help you understand and review the PR.