description import { LanguageDelegate , LanguageData } from "../../framework/base/Language" ; import { LanguageZH } from "./LanguageZH" ; import { LanguageEN } from "./LanguageEN" ; export let i18n = LanguageZH ; export class LanguageImpl implements LanguageDelegate { private static _instance : LanguageImpl = null ; public static Instance ( ) { return this . _instance || ( this . _instance = new LanguageImpl ( ) ) ; } data ( language ) { i18n = LanguageZH ; if ( language && language == LanguageEN . language ) { i18n = LanguageEN ; } return i18n ; } }