зеркало из https://github.com/mozilla/fxa.git
652c09ab50
Because: * Ensure all localization strings can be localized in React Server Components. This commit: * Removes LocalizerServer * Adds LocalizerRSC to serve as a wrapper for ReactLocalization that can be used by React Server Components, as well as a few other utility methods. * Adds LocalizerRscFactory that instantiates LocalizerRSC only with bundles for a provided acceptLanguage string. * Adds LocalizerRscFactoryProvider to be used with the NestApp to instantiate and then intialize the LocalizerRscFactory. Initalization will fetch all messages from disk and populate the bundles. * Reorganize shared/l10n library to match Node style guide * Removes demo l10n code * Update purchase-details, terms-and-service components, and success and error pages to use new LocalizerRSC class for localization. * Adds temporary l10n-convert script to provide translation for existing ftl strings. Closes #FXA-8822 |
||
---|---|---|
.. | ||
.gitkeep | ||
favicon.ico |