i18n-keyless-core 1.9.3 → 1.9.5
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/package.json +1 -1
- package/dist/service.d.ts +1 -1
- package/dist/service.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export type { I18nConfig, Lang, PrimaryLang, Translations, TranslationStore, TranslationStoreState, I18nKeylessRequestBody, I18nKeylessResponse, TranslationOptions, } from "./types";
|
|
2
|
-
export {
|
|
2
|
+
export { getTranslationCore, fetchAllTranslations, validateLanguage, queue } from "./service";
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { getTranslationCore, fetchAllTranslations, validateLanguage, queue } from "./service";
|
package/dist/package.json
CHANGED
package/dist/service.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare function validateLanguage(lang: I18nConfig["languages"]["supporte
|
|
|
17
17
|
* @returns The translated text or the original key if not found
|
|
18
18
|
* @throws Error if config is not initialized
|
|
19
19
|
*/
|
|
20
|
-
export declare function
|
|
20
|
+
export declare function getTranslationCore(key: string, store: TranslationStore, options?: TranslationOptions): string;
|
|
21
21
|
/**
|
|
22
22
|
* Queues a key for translation if not already translated
|
|
23
23
|
* @param key - The text to translate
|
package/dist/service.js
CHANGED
|
@@ -26,7 +26,7 @@ export function validateLanguage(lang, config) {
|
|
|
26
26
|
* @returns The translated text or the original key if not found
|
|
27
27
|
* @throws Error if config is not initialized
|
|
28
28
|
*/
|
|
29
|
-
export function
|
|
29
|
+
export function getTranslationCore(key, store, options) {
|
|
30
30
|
const currentLanguage = store.currentLanguage;
|
|
31
31
|
const config = store.config;
|
|
32
32
|
const translations = store.translations;
|