import * as assert from 'assert' ; import { getScriptResourcesLanguage } from '../extension.bundle' ; async function verifyLanguage ( vscodeLanguage , expected ) { assert . equal ( getScriptResourcesLanguage ( vscodeLanguage ) , expected ) ; } suite ( 'getScriptResourcesLanguage' , ( ) => { test ( 'en' , async ( ) => { await verifyLanguage ( 'en' , 'en-US' ) ; } ) ; test ( 'zh-CN' , async ( ) => { await verifyLanguage ( 'zh-CN' , 'zh-CN' ) ; } ) ; test ( 'zh-TW' , async ( ) => { await verifyLanguage ( 'zh-TW' , 'zh-TW' ) ; } ) ; test ( 'fr' , async ( ) => { await verifyLanguage ( 'fr' , 'fr-FR' ) ; } ) ; test ( 'de' , async ( ) => { await verifyLanguage ( 'de' , 'de-DE' ) ; } ) ; test ( 'it' , async ( ) => { await verifyLanguage ( 'it' , 'it-IT' ) ; } ) ; test ( 'es' , async ( ) => { await verifyLanguage ( 'es' , 'es-ES' ) ; } ) ; test ( 'ja' , async ( ) => { await verifyLanguage ( 'ja' , 'ja-JP' ) ; } ) ; test ( 'ko' , async ( ) => { await verifyLanguage ( 'ko' , 'ko-KR' ) ; } ) ; test ( 'ru' , async ( ) => { await verifyLanguage ( 'ru' , 'ru-RU' ) ; } ) ; test ( 'bg' , async ( ) => { await verifyLanguage ( 'bg' , 'en-US' ) ; } ) ; test ( 'hu' , async ( ) => { await verifyLanguage ( 'hu' , 'hu-HU' ) ; } ) ; test ( 'pt-br' , async ( ) => { await verifyLanguage ( 'pt-br' , 'pt-BR' ) ; } ) ; test ( 'tr' , async ( ) => { await verifyLanguage ( 'tr' , 'tr-TR' ) ; } ) ; test ( 'pt-pt' , async ( ) => { await verifyLanguage ( 'pt-pt' , 'pt-PT' ) ; } ) ; test ( 'unknown' , async ( ) => { await verifyLanguage ( 'unknown' , 'en-US' ) ; } ) ; test ( 'empty' , async ( ) => { await verifyLanguage ( '' , 'en-US' ) ; } ) ; } ) ;