You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
Currently vscode-nls library is provided for VSC extension localization. But according to current design 1> the localized strings for each languages under i18n are in separated files as a mirror of source code directory and file levels. 2> the English version string is passed to localize() function as second parameter. For microsoft/vscode#1, can you provide a way to make all the localized strings in a single file for better and clearer checking. For microsoft/vscode#2, with all the English version strings embedded in code, It would be hard to track all the Eng strings, how can I make it in a single file and reference from this file?
The text was updated successfully, but these errors were encountered:
The vscode-nls-dev package also generates a single meta data file containing all English strings and their corresponding keys. The file is called nls.metadata.json.
@dbaeumer Thanks for your response. I think vscode-nls-dev is to transform all files under i18n folder to meta data file under 'out' file. So according to my understanding, the meta data file is only for running the extension after building the extension. But the strings under i18n folder which is like the source to manage is still distributed in different files. For example, when you add a new string in code, you need to add it to i18n folder and when bug exist, you need to find in all these files under the locale folder.
Same to the English strings, the meta data file contains all English strings but it's generated by vscode-nls-dev, the original English word is somehow hardcoded in code instead of referenced from a single file.
vscode-nls-dev extracts strings from the source and generates English files to be translated. vscode-nls allows to use different languages during runtime.
Currently vscode-nls library is provided for VSC extension localization. But according to current design 1> the localized strings for each languages under i18n are in separated files as a mirror of source code directory and file levels. 2> the English version string is passed to localize() function as second parameter. For microsoft/vscode#1, can you provide a way to make all the localized strings in a single file for better and clearer checking. For microsoft/vscode#2, with all the English version strings embedded in code, It would be hard to track all the Eng strings, how can I make it in a single file and reference from this file?
The text was updated successfully, but these errors were encountered: