transloco icon indicating copy to clipboard operation
transloco copied to clipboard

@transloco/locale Feature: Get default locale

Open MickL opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe.

I would like to get the default locale? In Transloco there is a function for that:

translocoService.setActiveLang(getBrowserLang() || translocoService.getDefaultLang());
translocoLocaleService.setLocale(getBrowserCultureLang() || translocoLocaleService.getDefaultLang()); // <-- ???

Describe the solution you'd like

Implement .getDefaultLang() to be on par with Transloco.

MickL avatar May 17 '21 14:05 MickL

@MickL would you like to create a pr for that?

itayod avatar Jun 09 '21 07:06 itayod

I dont have the knowledge for that

MickL avatar Jul 02 '21 09:07 MickL