Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@shopify/react-i18n-universal-provider
Advanced tools
A self-serializing/deserializing i18n provider that works for isomorphic applications
@shopify/react-i18n-universal-provider
[!CAUTION]
@shopify/react-i18n-universal-provider
is deprecated.Shopifolk, see Shopify/quilt-internal for information on the latest packages available for use internally.
A self-serializing/deserializing i18n provider that works for isomorphic applications.
yarn add @shopify/react-i18n-universal-provider
The component takes an object containing the React children to render and any options to use when configuring the I18nManager
to provide to the tree.
The <I18nUniversalProvider>
takes the following props:
// from @shopify/react-i18n
I18nDetails {
locale: string;
country?: string;
currency?: string;
timezone?: string;
pseudolocalize?: boolean;
fallbackLocale?: string;
onError?(error: I18nError): void;
}
// App.tsx
import {I18nUniversalProvider} from '@shopify/react-i18n-universal-provider';
function App({locale}: {locale?: string}) {
return (
<I18nUniversalProvider locale={locale}>
{/* rest of the app */}
</I18nUniversalProvider>
);
}
Error: Missing i18n manager. Make sure to use an <I18nContext.Provider /> somewhere in your React tree from the @shopify/react-i18n hook.
Duplicate and/or unmet versions of react-i18n
Deduplicating dependencies for react-i18n-universal-provider and react-i18n.
npx yarn-deduplicate --packages @shopify/react-i18n yarn.lock
npx yarn-deduplicate --packages @shopify/react-html yarn.lock
npx yarn-deduplicate --packages @shopify/react-effect yarn.lock
# deduplicate other dependencies of @shopify/react-i18n
yarn why @shopify/react-i18n # ensure no duplicate / unmet dependencies
yarn list # ensure no duplicate / unmet dependencies
yarn install
FAQs
A self-serializing/deserializing i18n provider that works for isomorphic applications
The npm package @shopify/react-i18n-universal-provider receives a total of 4,188 weekly downloads. As such, @shopify/react-i18n-universal-provider popularity was classified as popular.
We found that @shopify/react-i18n-universal-provider demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.