Skip to main content

createTranslator

Callable

  • createTranslator(namespace: string | string[], resourcePath: PortablePath | PortablePath[], options?: TranslatorOptions): Promise<Translator>

  • Create and return a Translator instance with the defined namespace. A list of resource paths are required for locating translation files.