Updated l10n sample

This commit is contained in:
Tyler Leonhardt
2022-11-14 09:57:04 -08:00
parent ddae6c0c9f
commit bbd297d52d
5 changed files with 25 additions and 19 deletions

View File

@ -7,4 +7,10 @@ import { l10n, window } from 'vscode';
export function sayByeCommand() {
const message = l10n.t('Bye');
window.showInformationMessage(message);
const message2 = l10n.t({
message: 'Bye {0}',
args: ['Joey'],
comment: ['{0} is a person\'s name']
});
window.showInformationMessage(message2);
}