-
Notifications
You must be signed in to change notification settings - Fork 4.1k
✨ [Story localization] Localize system layer async #37870
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
Merged
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
6aabe91
Added tasts
mszylkowski dc1fa87
Undo
mszylkowski d707e5b
Merge branch 'main' of github.com:ampproject/amphtml
mszylkowski 0e3df75
Merge branch 'main' of github.com:ampproject/amphtml
mszylkowski a3f7bd0
Merge branch 'main' of github.com:ampproject/amphtml
mszylkowski 8c5119c
Merge branch 'main' of github.com:ampproject/amphtml
mszylkowski 77f8435
Merge branch 'main' of github.com:ampproject/amphtml
mszylkowski 16e712e
Merge branch 'main' of github.com:ampproject/amphtml
mszylkowski 8088eb7
Merge branch 'main' of github.com:ampproject/amphtml
mszylkowski 3858b2a
Merge branch 'main' of github.com:ampproject/amphtml
mszylkowski e12d2f6
Merge branch 'main' of github.com:ampproject/amphtml
mszylkowski 2a29105
Merge branch 'main' of github.com:ampproject/amphtml
mszylkowski a5b781f
Merge branch 'main' of github.com:ampproject/amphtml
mszylkowski b8006ee
Merge branch 'main' of github.com:ampproject/amphtml
mszylkowski a04f6d2
Added logic and tests
mszylkowski 9c4f9b9
Updated tests with correct version
mszylkowski 07e3ca5
Updated comment
mszylkowski 879fa46
Catch error in JSON inlined
mszylkowski 5dfb927
Merge branch 'stringjson_inlined' of github.com:mszylkowski/amphtml i…
mszylkowski bc9c7ed
Removed empty lines
mszylkowski e53661a
Changed attribute to amp-localization
mszylkowski 55274f6
Added json fetching for testing
mszylkowski 595c683
Remove .only
mszylkowski ed4ecaf
Merge branch 'main' of github.com:ampproject/amphtml into TEST_fetchs…
mszylkowski 5b923de
Install localization strings if inside experiment
mszylkowski 6f8c1ca
Merge branch 'main' of github.com:ampproject/amphtml into TEST_fetchs…
mszylkowski 1d419c3
Added tests
mszylkowski 72070cf
Moved test to inside describes
mszylkowski 1361273
Remove unused function
mszylkowski 5b49fff
Remove unused import
mszylkowski b293243
Reverted index.js
mszylkowski ec2c791
Added dep check
mszylkowski 3a5e409
Made tests more explicit
mszylkowski b3b7b17
Catching unknown language
mszylkowski 53eb702
Localize system layer + localization service changes
mszylkowski ac27177
Install all bundles at the same time
mszylkowski d6cea31
Fixed tests with installing all bundles
mszylkowski 0900d28
Fixed comments from gmajoulet
mszylkowski 59ebcb5
Remove unused fetchStub const, test with performance service
mszylkowski 613800f
Merge branch 'TEST_fetchstrings_controlled' of github.com:mszylkowski…
mszylkowski 4dc1328
Revert observable change
mszylkowski 8129374
Use object.keys instead of entries
mszylkowski 193502b
Fixed iteration
mszylkowski f617514
Merge branch 'main' of github.com:ampproject/amphtml into localizeAsy…
mszylkowski 4315bae
Use localizeTemplate
mszylkowski e22b1a9
Updated tests
mszylkowski 8488149
Remove .only
mszylkowski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Are we lazy loading auto-ads strings as a follow up? Where is this tracked?
How many kbs are removed from the critical render path by doing so?
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.
This change is part of the change in signature of
registerLocalizationStringBundlesto receive a map oflanguageCode: bundle. We can make the auto-ads async at some point but it's not the goal of this effort now (can be a stretch goal); we could add the strings to the amp-story JSONs or a new set of JSONs, because this architecture allows for both, though it will require more work on the infra side. The auto-ads strings are not in the critical render path of the story so we can analyze it 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.
The answer to this is in the FAQ section of the I2I as well. I added it in the description of the PR so it's easier to follow.