i18n-keyless-core 1.17.5 → 1.18.0

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.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- export type { Lang, PrimaryLang, Translations, TranslationsUsage, HandleTranslateFunction, GetAllTranslationsFunction, SendTranslationsUsageFunction, GetAllTranslationsForAllLanguagesFunction, LanguagesConfig, LastRefresh, UniqueId, I18nKeylessRequestBody, I18nKeylessResponse, I18nKeylessTranslationsUsageRequestBody, I18nKeylessAllTranslationsResponse, FetchTranslationParams, TranslationOptions, } from "./types";
2
- export { getTranslationCore, getAllTranslationsFromLanguage, sendTranslationsUsageToI18nKeyless, queue, } from "./service";
1
+ export { AVAILABLE_LANGS } from "./types";
2
+ export type { Lang, PrimaryLang, Translations, TranslationsUsage, HandleTranslateFunction, GetAllTranslationsFunction, SendTranslationsUsageFunction, GetAllTranslationsForAllLanguagesFunction, LanguagesConfig, LastRefresh, UniqueId, I18nKeylessRequestBody, I18nKeylessResponse, I18nKeylessTranslationsUsageRequestBody, I18nKeylessAllTranslationsResponse, FetchTranslationParams, TranslationOptions } from "./types";
3
+ export { getTranslationCore, getAllTranslationsFromLanguage, sendTranslationsUsageToI18nKeyless, queue } from "./service";
3
4
  export { api } from "./api";
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
- export { getTranslationCore, getAllTranslationsFromLanguage, sendTranslationsUsageToI18nKeyless, queue, } from "./service";
1
+ export { AVAILABLE_LANGS } from "./types";
2
+ export { getTranslationCore, getAllTranslationsFromLanguage, sendTranslationsUsageToI18nKeyless, queue } from "./service";
2
3
  export { api } from "./api";
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "i18n-keyless-core",
3
3
  "private": false,
4
- "version": "1.17.5",
4
+ "version": "1.18.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "scripts": {
25
25
  "prepublishOnly": "rm -rf ./dist && tsc --project tsconfig.json && npm pack",
26
26
  "test": "echo 'no test for core'",
27
- "postpublish": "rm -rf ./dist && rm *.tgz"
27
+ "postpublish": "rm -f *.tgz"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "^22.5.5",
package/dist/types.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export type PrimaryLang = "fr" | "en";
2
- export type Lang = "fr" | "en" | "nl" | "it" | "de" | "es" | "pl" | "pt" | "ro" | "hu" | "sv" | "tr" | "ja" | "cn" | "cz" | "ru" | "ko" | "ar";
2
+ export declare const AVAILABLE_LANGS: readonly ["fr", "en", "nl", "it", "de", "es", "pl", "pt", "ro", "hu", "sv", "tr", "ja", "cn", "cz", "ru", "ko", "ar"];
3
+ export type Lang = (typeof AVAILABLE_LANGS)[number];
3
4
  /**
4
5
  * The translations for a key
5
6
  * { "un text": "a text" }
package/dist/types.js CHANGED
@@ -1 +1,20 @@
1
- export {};
1
+ export const AVAILABLE_LANGS = [
2
+ "fr",
3
+ "en",
4
+ "nl",
5
+ "it",
6
+ "de",
7
+ "es",
8
+ "pl",
9
+ "pt",
10
+ "ro",
11
+ "hu",
12
+ "sv",
13
+ "tr",
14
+ "ja",
15
+ "cn",
16
+ "cz",
17
+ "ru",
18
+ "ko",
19
+ "ar"
20
+ ];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "i18n-keyless-core",
3
3
  "private": false,
4
- "version": "1.17.5",
4
+ "version": "1.18.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "scripts": {
25
25
  "prepublishOnly": "rm -rf ./dist && tsc --project tsconfig.json && npm pack",
26
26
  "test": "echo 'no test for core'",
27
- "postpublish": "rm -rf ./dist && rm *.tgz"
27
+ "postpublish": "rm -f *.tgz"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "^22.5.5",