How to get the current language name?
See original GitHub issueHello,
in a component we can get the current language code with $i18n.locale
, but how to retrieve its name? $i18n.name
doesn’t work.
Thank you
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
android - Get the current language in device - Stack Overflow
You can use Locale.getDefault().getLanguage(); to get the usual language code (e.g. "de", "en"). – muscardinus.
Read more >How to Get the current language in Android device?
This example demonstrate about how to Get the current language in Android device. Step 1 − Create a new project in Android Studio,...
Read more >How to Get Current Language with WPML
The wpml_current_language hook is the recommended way to get the current language of your site. One way to use this hook is to...
Read more >How to detect current selected language?
You can get the code of the current selected language with JavaScript using the following piece of code: ... return c.substring(name.length, c.length);
Read more >How to output the website's current language name?
You can set the title of the language under Setup->Languages in the backend. Best, Nils. Like 4 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
this.$i18n.localeProperties
has all the properties of the current locale sothis.$i18n.localeProperties.name
should work.Hello,
Have you seen this example https://i18n.nuxtjs.org/lang-switcher?
Thanks!