mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
Initial version of i18n-sample
To keep things simple, this doesn't use the nls-dev package. I think this demystifies a lot of things when you see what is actually going on behind the scenes.
This commit is contained in:
1
i18n-sample/src/command/sayBye.nls.ja.json
Normal file
1
i18n-sample/src/command/sayBye.nls.ja.json
Normal file
@ -0,0 +1 @@
|
||||
["さようなら"]
|
||||
4
i18n-sample/src/command/sayBye.nls.json
Normal file
4
i18n-sample/src/command/sayBye.nls.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"messages": ["Bye"],
|
||||
"keys": ["sayBye.text"]
|
||||
}
|
||||
@ -11,4 +11,4 @@ const localize = nls.loadMessageBundle();
|
||||
export function sayByeCommand() {
|
||||
const message = localize('sayBye.text', 'Bye')
|
||||
vscode.window.showInformationMessage(message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user