generaltranslation 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.min.cjs.map +1 -1
- package/dist/index.esm.min.mjs.map +1 -1
- package/dist/internal.cjs.min.cjs +1 -1
- package/dist/internal.cjs.min.cjs.map +1 -1
- package/dist/internal.d.ts +2 -1
- package/dist/internal.esm.min.mjs +1 -1
- package/dist/internal.esm.min.mjs.map +1 -1
- package/package.json +1 -1
@@ -1,2 +1,2 @@
|
|
1
|
-
var e="en-US",t="generaltranslation.locale",
|
1
|
+
var e="en-US",t="generaltranslation.locale",a=["singular","plural","dual","zero","one","two","few","many","other"],n="https://cache.gtx.dev",l="https://prod.gtx.dev",r="x-generaltranslation-locale";function o(e){return a.includes(e)}export{l as defaultAPIURL,n as defaultCacheURL,o as isAcceptedPluralForm,e as libraryDefaultLocale,t as localeCookieName,r as localeHeaderName,a as pluralForms};
|
2
2
|
//# sourceMappingURL=internal.esm.min.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"internal.esm.min.mjs","sources":["../src/internal.ts"],"sourcesContent":["export const libraryDefaultLocale = \"en-US\" as const;\nexport const localeCookieName = \"generaltranslation.locale\" as const;\nexport const pluralForms = [\"singular\", \"plural\", \"dual\", \"zero\", \"one\", \"two\", \"few\", \"many\", \"other\"] as const;\nexport const defaultCacheURL = \"https://cache.gtx.dev\" as const;\nexport const defaultAPIURL = \"https://prod.gtx.dev\" as const;\nexport function isAcceptedPluralForm(\n form: string\n ): form is (typeof pluralForms)[number] {\n return pluralForms.includes(form as (typeof pluralForms)[number]);\n}"],"names":["libraryDefaultLocale","localeCookieName","pluralForms","defaultCacheURL","defaultAPIURL","isAcceptedPluralForm","form","includes"],"mappings":"AAAO,IAAMA,EAAuB,QACvBC,EAAmB,4BACnBC,EAAc,CAAC,WAAY,SAAU,OAAQ,OAAQ,MAAO,MAAO,MAAO,OAAQ,SAClFC,EAAkB,wBAClBC,EAAgB,
|
1
|
+
{"version":3,"file":"internal.esm.min.mjs","sources":["../src/internal.ts"],"sourcesContent":["export const libraryDefaultLocale = \"en-US\" as const;\nexport const localeCookieName = \"generaltranslation.locale\" as const;\nexport const pluralForms = [\"singular\", \"plural\", \"dual\", \"zero\", \"one\", \"two\", \"few\", \"many\", \"other\"] as const;\nexport const defaultCacheURL = \"https://cache.gtx.dev\" as const;\nexport const defaultAPIURL = \"https://prod.gtx.dev\" as const;\nexport const localeHeaderName = \"x-generaltranslation-locale\";\nexport function isAcceptedPluralForm(\n form: string\n ): form is (typeof pluralForms)[number] {\n return pluralForms.includes(form as (typeof pluralForms)[number]);\n}"],"names":["libraryDefaultLocale","localeCookieName","pluralForms","defaultCacheURL","defaultAPIURL","localeHeaderName","isAcceptedPluralForm","form","includes"],"mappings":"AAAO,IAAMA,EAAuB,QACvBC,EAAmB,4BACnBC,EAAc,CAAC,WAAY,SAAU,OAAQ,OAAQ,MAAO,MAAO,MAAO,OAAQ,SAClFC,EAAkB,wBAClBC,EAAgB,uBAChBC,EAAmB,8BAC1B,SAAUC,EACZC,GAEA,OAAOL,EAAYM,SAASD,EAChC"}
|