@voilabs/oilang 0.0.12 → 0.0.13

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
@@ -68,5 +68,6 @@ export declare class OILang {
68
68
  translations: Translation;
69
69
  constructor(config: AdapterConfig);
70
70
  init(): Promise<void>;
71
+ refreshCache(): Promise<void>;
71
72
  }
72
73
  export {};
package/dist/index.js CHANGED
@@ -224,4 +224,7 @@ export class OILang {
224
224
  throw new Error("Failed to load locales or translations");
225
225
  }
226
226
  }
227
+ async refreshCache() {
228
+ return await this.init();
229
+ }
227
230
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@voilabs/oilang",
3
3
  "description": "A robust internationalization (i18n) handling library designed for performance and flexibility.",
4
- "version": "0.0.12",
4
+ "version": "0.0.13",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {