Skip to content

@transloco/locale Feature: Get default locale #442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MickL opened this issue May 17, 2021 · 2 comments
Open

@transloco/locale Feature: Get default locale #442

MickL opened this issue May 17, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@MickL
Copy link

MickL commented May 17, 2021

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 MickL changed the title Feature: Get default locale @transloco/locale Feature: Get default locale May 17, 2021
@itayod
Copy link
Contributor

itayod commented Jun 9, 2021

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

@shaharkazaz shaharkazaz added the enhancement New feature or request label Jul 1, 2021
@MickL
Copy link
Author

MickL commented Jul 2, 2021

I dont have the knowledge for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants