Skip to content

Conversation

@HappyPaul55
Copy link
Contributor

@HappyPaul55 HappyPaul55 commented Nov 12, 2024

Evidence

image

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.

@github-actions
Copy link

github-actions bot commented Nov 12, 2024

@HappyPaul55 HappyPaul55 marked this pull request as ready for review November 12, 2024 16:18
)}
text={<FormattedMessage id="button.clear" />}
/>
<H1 style={{ color: "#8B9293" }}>
Copy link
Contributor

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';
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants