I18nService

I18nService

Signature

class I18nService implements OnModuleInit {
  addTranslationFile(langKey: string, filePath: string) => void;
  addTranslation(langKey: string, resources: VendureTranslationResources | any) => void;
}

Implements

  • OnModuleInit

Members

addTranslationFile

method
type:
(langKey: string, filePath: string) => void
Add a I18n translation by json file

addTranslation

method
type:
(langKey: string, resources: VendureTranslationResources | any) => void
Add a I18n translation (key-value) resource