We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I encountered an exception while using i18n to dynamically load localized multilingual files
const [i18n] = useI18n({ id: "Polaris", fallback: translations, async translations(locale: string) { console.log("locale", locale); try { const dictionary = await import( /* webpackChunkName: "Polaris-i18n", webpackMode: "lazy-once" */ @shopify/polaris/locales/${locale}.json ); console.log("dictionary", dictionary); return dictionary && dictionary.default; } catch (error) { console.log("error", error); return zhCN; } }, });
help
Wrap animated gifs/videos in a details tag:
Link to sandbox 1. 2. 3.
None
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary
I encountered an exception while using i18n to dynamically load localized multilingual files
const [i18n] = useI18n({
id: "Polaris",
fallback: translations,
async translations(locale: string) {
console.log("locale", locale);
try {
const dictionary = await import(
/* webpackChunkName: "Polaris-i18n", webpackMode: "lazy-once" */ @shopify/polaris/locales/${locale}.json
);
console.log("dictionary", dictionary);
return dictionary && dictionary.default;
} catch (error) {
console.log("error", error);
return zhCN;
}
},
});
Expected behavior
help
Actual behavior
Wrap animated gifs/videos in a details tag:
Summary of your gif(s)
Steps to reproduce
Link to sandbox
1.
2.
3.
Are you using React components?
None
Polaris version number
No response
Browser
No response
Device
No response
The text was updated successfully, but these errors were encountered: