mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -05:00
Add test for localized spoken language name
This commit is contained in:
parent
94e2478a10
commit
64eace3b90
1 changed files with 8 additions and 0 deletions
|
@ -34,3 +34,11 @@ test('get the extension locale for a supported locale that differs', t => {
|
||||||
t.strictEqual(ext.getCurrentLanguage(), 'ja');
|
t.strictEqual(ext.getCurrentLanguage(), 'ja');
|
||||||
t.end();
|
t.end();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('use localized spoken language name in place of localized written language name', t => {
|
||||||
|
ext.getEditorLanguage = () => 'es';
|
||||||
|
const languageMenu = ext.getLanguageMenu();
|
||||||
|
const localizedNameForChineseInSpanish = languageMenu.find(el => el.value === 'zh-cn').text;
|
||||||
|
t.strictEqual(localizedNameForChineseInSpanish, 'Chino (Mandarín)'); // i.e. should not be 'Chino (simplificado)'
|
||||||
|
t.end();
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in a new issue