Skip to content

TranslationService experimental

Demo

ts
const translationService = new TranslationService({
  defaultLocale: 'en',
  supportedLocales: ['en', 'ru'],
  translationLoader: new FetchTranslationLoader({
    prefixUrl: 'lang',
  }),
})

translationService.translate('key1')
// value 1 en
Loading...