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
Using i18next-icu in browser will result ReferenceError: module is not defined error.
ReferenceError: module is not defined
Install i18next and i18next-icu and load in html file like below
npm install i18next i18next-icu
in the html file
<html> <head> <script src="node_modules/i18next/i18next.min.js"></script> <script src="node_modules/i18next-icu/i18nextICU.js"></script> </head> <body> <script> i18next .use(i18nextICU) .init({ lng: "en", resources: { en: { translation: { key: "You have {numPhotos, plural, " + "=0 {no photos.}" + "=1 {one photo.}" + "other {# photos.}}" } } } }); i18next.t("key", { numPhotos: 1000 }) </script> </body> </html>
Javascript above run successfully, instead of returning Uncaught ReferenceError: module is not defined error.
Uncaught ReferenceError: module is not defined
The text was updated successfully, but these errors were encountered:
update intl-messageformat dependency to address #57
8bd7974
Can you try with v2.1.0 ?
Sorry, something went wrong.
i just tried and no error anymore. Thank you.
No branches or pull requests
🐛 Bug Report
Using i18next-icu in browser will result
ReferenceError: module is not defined
error.To Reproduce
Install i18next and i18next-icu and load in html file like below
in the html file
Expected behavior
Javascript above run successfully, instead of returning
Uncaught ReferenceError: module is not defined
error.Environment
The text was updated successfully, but these errors were encountered: