Repository navigation
Description
Refs: #82595
- anyOS: Dirk Bäumer (@dbaeumer)
- anyOS Joyce Er (@joyceerhl)
Complexity: 4
Goals
The goal of this test plan item is to explore what a non-Microsoft user will have to go through to support localization in their extension. The prediction is that most extensions won't have an entire team of translators at the ready translating strings... and instead an extension will need to crowd source a lot of this.
I have added a sample to vscode-extension-samples that demonstrates how an extension might do this by introducing the main components of localization in the README and providing some localized strings checked in to the repo. I want you to:
- Read the README to see if it makes sense (run any commands that it says to run)
- Try adding new code to the extension/package.json that introduces more strings to translate. Try running the
l10n-devtooling to see that these get picked up.
Setup
In https://github.com/microsoft/vscode-extension-samples/tree/tyler/add-l10n-extension-sample I have added a new l10n-sample.
- Clone this repo and checkout that branch
- open the
l10n-samplefolder in vscode insiders - You can run the extension in Japanese to get Japanese strings... or English for any other language
Resources
Don't speak another language? No problem. Use Pseudo Language! The language code is qps-ploc so you should be able to save a package.nls.qps-ploc.json and a bundle.l10n.qps-ploc.json and throw the strings through http://www.pseudolocalize.com/ to mimic speaking another language 😉
Activity
dbaeumer commentedon Sep 27, 2022
TylerLeonhardt parts of the testing is blocked due to #161945
joyceerhl commentedon Sep 27, 2022
Must extensions now have globally unique localization keys?
TylerLeonhardt commentedon Sep 27, 2022
No. The same string will be used in those cases.... unless they have different comments because the new key for a string is: