description | title | author | ms.author | ms.date | ms.topic | ms.prod | keywords |
---|---|---|---|---|---|---|---|
Make your extension accessible for different languages and test your language strings with the internationalization guide. |
Extensions - Internationalization |
MSEdgeTeam |
msedgedevrel |
02/08/2017 |
article |
microsoft-edge |
edge, web development, html, css, javascript, developer |
In order to make your extension accessible to a variety of different people, it is important to develop with other countries in mind. Microsoft Edge extensions allows you to add different language strings to your extensions so that their language can easily be changed.
For more information on internationalizing your extension, check out MDN's Internationalization guide.
To test your language strings, you first need to set the Windows display language to the language that you want to test for.
Follow the steps below to change the Windows display language:
-
Open the Settings app.
-
Select "Time & language".
-
Select "Region & language".
-
Select "+ Add a language" to add the language to the list of possible languages.
-
Choose the language from the "Languages" list that you want to test.
-
Select the "Set as default" button (you may need to restart your PC).
-
Open Microsoft Edge and verify that the strings defined for the locale appear as expected.
By using the NavigatorLanguage.language property, you can verify that the language Microsoft Edge has determined to be the Windows display language is correct.
Click the button in the CodePen below to see the display language of your browser.
<iframe height='300' scrolling='no' title='Get locale' src='//codepen.io/MSEdgeDev/embed/VaRWwR/?height=300&theme-id=23761&default-tab=result&embed-version=2&editable=true' frameborder='no' allowtransparency='true' allowfullscreen='true' style='width: 100%;'>See the Pen Get localeby MSEdgeDev (@MSEdgeDev) on CodePen. </iframe>