All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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"]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy