-
Notifications
You must be signed in to change notification settings - Fork 685
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
[Docs] Internationalization docs #2741
Conversation
|
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 is a nice summarization! A few comments but I'm pretty happy with it as is.
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Outdated
Show resolved
Hide resolved
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Outdated
Show resolved
Hide resolved
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Show resolved
Hide resolved
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Outdated
Show resolved
Hide resolved
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Show resolved
Hide resolved
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Outdated
Show resolved
Hide resolved
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Outdated
Show resolved
Hide resolved
- The package contains an `i18n` directory | ||
- The `i18n` directory contains a dictionary file with a locale formatted name | ||
|
||
<!-- TODO: Create an in-depth tutorial for creating a language package extension --> |
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.
Isn't there an example repo @davemacaulay created for this? Not sure if it's public but would be trivial to make one and just link it, I'm sure.
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.
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.
since it's not merged into mainline yet, I can't add a link to it. maybe when I do the tutorial I can add it.
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Show resolved
Hide resolved
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.
LGTM!
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 looks like a good first pass, a fair few comments to get this in line with our original thinking. I think we can also rely on an issue I originally created to provide more context on our decision making: #669 (comment)
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Outdated
Show resolved
Hide resolved
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Show resolved
Hide resolved
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Outdated
Show resolved
Hide resolved
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Outdated
Show resolved
Hide resolved
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Outdated
Show resolved
Hide resolved
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Outdated
Show resolved
Hide resolved
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Show resolved
Hide resolved
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Outdated
Show resolved
Hide resolved
If a components changes the value of the current locale during runtime, the framework sends a GraphQL query to verify the new value. | ||
Even if you install a language package plugin for a locale, you must enable the locale on the backend to use the translations in the storefront UI. |
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.
What is this concerning? We don't do any GraphQL queries for individual string changes during development. Be good if you can clarify which feature you mean by 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.
I wanted to make sure we covered our bases in terms of what minimum requirements are met in order to enable and use translations in the UI. If a user makes an i18n/fr_FR.json
they can't just display French right? They'd have to enable it in the backend so that it shows up in the locale switcher that @eug123 has created.
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.
additional clarification provided
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.
Thanks for explaining @sirugh!
pwa-devdocs/src/technologies/basic-concepts/internationalization/index.md
Outdated
Show resolved
Hide resolved
Verification steps pass. |
Description
Creates a new Internationalization topic that provides an overview of the I18n framework in PWA Studio.
Related Issue
Closes PWA-930
Related to work done in #2696
Acceptance
@davemacaulay or anyone in the owls team
Any other untitled geese developer
Verification Stakeholders
@davemacaulay or anyone in the owls team
Any other untitled geese developer
Specification
Verification Steps
cd pwa-devdocs
yarn develop
/technologies/basic-concepts/internationalization/
Screenshots / Screen Captures (if appropriate)
Checklist