packages/core/src/lib/services/i18n/i18n.resource.ts
Methods |
|
constructor(prefix: string, suffix: string, compileTranslationsFn: (translations: unknown, lang: string) => void)
|
|
Resource constructor |
| Public compileTranslations | ||||||||||||
compileTranslations(translations: unknown, lang: string)
|
||||||||||||
|
Translations pre-processor
Parameters :
Returns :
unknown
the pre-processed translations |
| Public equals | ||||||||
equals(obj: I18nResourceImpl)
|
||||||||
|
Indicates whether other object is equal-to this one.
Parameters :
Returns :
boolean
true if this object is the same as obj, false otherwise |
| Public getPath | ||||||||
getPath(lang: string)
|
||||||||
|
The path to the resource
Parameters :
Returns :
string
the path |