-
Notifications
You must be signed in to change notification settings - Fork 0
[Feature] SC-61527 add translations #26
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
base: main
Are you sure you want to change the base?
[Feature] SC-61527 add translations #26
Conversation
|
Build for commit 1409926 deployed to: https://scratchpad-pr-26.ci.next.deskprodemo.com URLs: |
| )} | ||
| text={<FormattedMessage id="button.clear" />} | ||
| /> | ||
| <H1 style={{ color: "#8B9293" }}> |
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.
Please use colors from the theme context instead of hardcoding them.
|
|
||
| export default function TranslatedApp(props: { children: ReactNode }) { | ||
| const { context } = useDeskproLatestAppContext(); | ||
| const locale = context?.data?.app?.locale ?? 'en-GB'; |
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 if the context contains a locale that isn't listed in the locales array in manifest.json?
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.
…and we don’t have any translation files for it?
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.
Description is usually showed as an iframe specified by the appStoreUrl in manifest.json. How should translation work in this case?
Evidence
This change uses the new manifest updates to allow the app to support multiple languages. For now, I've added Spanish just to show that the language to does change.