Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
package.dist.prod.locale.languageChange.js.map Maven / Gradle / Ivy
{
"version": 3,
"sources": ["../../../src/locale/languageChange.ts"],
"sourcesContent": ["import EventProvider from \"../EventProvider.js\";\n\ntype LanguageChangeCallback = (lang: string) => Promise>;\n\nconst eventProvider = new EventProvider>>();\nconst LANG_CHANGE = \"languageChange\";\n\nconst attachLanguageChange = (listener: LanguageChangeCallback) => {\n\teventProvider.attachEvent(LANG_CHANGE, listener);\n};\n\nconst detachLanguageChange = (listener: LanguageChangeCallback) => {\n\teventProvider.detachEvent(LANG_CHANGE, listener);\n};\n\nconst fireLanguageChange = (lang: string) => {\n\treturn eventProvider.fireEventAsync(LANG_CHANGE, lang);\n};\n\nexport {\n\tattachLanguageChange,\n\tdetachLanguageChange,\n\tfireLanguageChange,\n};\n"],
"mappings": "aAAA,OAAOA,MAAmB,sBAI1B,MAAMC,EAAgB,IAAID,EACpBE,EAAc,iBAEdC,EAAwBC,GAAqC,CAClEH,EAAc,YAAYC,EAAaE,CAAQ,CAChD,EAEMC,EAAwBD,GAAqC,CAClEH,EAAc,YAAYC,EAAaE,CAAQ,CAChD,EAEME,EAAsBC,GACpBN,EAAc,eAAeC,EAAaK,CAAI,EAGtD,OACCJ,KAAA,qBACAE,KAAA,qBACAC,KAAA",
"names": ["EventProvider", "eventProvider", "LANG_CHANGE", "attachLanguageChange", "listener", "detachLanguageChange", "fireLanguageChange", "lang"]
}