Make coding I18n less stressful.
npm install remote-i18n
# or
yarn add remote-i18n
# or
pnpm add remote-i18n- Create a project and get the
apiKeyin our tool - Put the
apiKeyinI18nProvider's props - Put your translation's
idinT's props (WheneverTcomponent is rendered, it'sidwill be created automatically in the tool) - Update your translation in the tool
You can download the JSON file in the tool and put it in I18nProvider's data props. Since your client already has data, remote-i18n will not try to fetch data from remote anymore. It's better for SSR (no loading state, no empty translations).
Without data props, the apiKey is requried for remote-i18n to fetch data from remote (there will be a loading state and cannot be used for SSR).