diff --git a/projects/ngx-translate/core/src/lib/translate.service.ts b/projects/ngx-translate/core/src/lib/translate.service.ts index 656689d..14a0937 100644 --- a/projects/ngx-translate/core/src/lib/translate.service.ts +++ b/projects/ngx-translate/core/src/lib/translate.service.ts @@ -454,6 +454,14 @@ export class TranslateService { } } + /** + * Returns all values translation instantly from the internal state of loaded translation. + * All rules regarding the current language, the preferred language of even fallback languages will be used except any promise handling. + */ + public instantAll(): Array | any { + return this.translations[this.currentLang]; + } + /** * Sets the translated value of a key, after compiling it */