generaltranslation 4.0.0 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,2 @@
1
- var e="en-US",t="generaltranslation.locale",n=["singular","plural","dual","zero","one","two","few","many","other"],r="https://cache.gtx.dev",a="https://prod.gtx.dev";function l(e){return n.includes(e)}export{a as defaultAPIURL,r as defaultCacheURL,l as isAcceptedPluralForm,e as libraryDefaultLocale,t as localeCookieName,n as pluralForms};
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,uBACvB,SAAUC,EACZC,GAEA,OAAOJ,EAAYK,SAASD,EAChC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generaltranslation",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "A language toolkit for AI developers",
5
5
  "main": "dist/index.cjs.min.cjs",
6
6
  "module": "dist/index.esm.min.mjs",