@rimelight/i18n 0.0.12 → 0.0.14

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  import { a as getPluralCategory, c as useFormat, i as getI18nInstance, l as useI18n, n as currentLocale, o as initializeI18n, r as getFormatterInstance, t as clearCache, u as useI18nAsync } from "./runtime-LitYNVlO.mjs";
2
- import { t as i18n } from "./plugin-jh44sjC0.mjs";
2
+ import { t as i18n } from "./plugin-wd6n-2-C.mjs";
3
3
  import { a as getLocale, c as getRelativeLocaleUrlList, d as setKVBinding, f as t, i as getLanguageAlternates, l as locales, n as defaultLocale, o as getOgLocale, r as getHtmlLang, s as getRelativeLocaleUrl, t as createTranslationLoader, u as prefixDefaultLocale } from "./src-DDBWfigm.mjs";
4
4
  export { clearCache, createTranslationLoader, currentLocale, defaultLocale, getFormatterInstance, getHtmlLang, getI18nInstance, getLanguageAlternates, getLocale, getOgLocale, getPluralCategory, getRelativeLocaleUrl, getRelativeLocaleUrlList, i18n, i18n as rimelightI18n, initializeI18n, locales, prefixDefaultLocale, setKVBinding, t, useFormat, useI18n, useI18nAsync };
@@ -16,15 +16,17 @@ function i18n(options) {
16
16
  return [{
17
17
  name: "vite-plugin-rimelight-i18n-config",
18
18
  resolveId(id) {
19
- if (id === "virtual:rimelight-i18n-config") return "\0" + id;
19
+ if (id === "virtual:rimelight-i18n-config" || id === "virtual:rimelight/i18n") return "\0" + id;
20
20
  return null;
21
21
  },
22
22
  load(id) {
23
- if (id === "\0virtual:rimelight-i18n-config") return `
23
+ if (id === "\0virtual:rimelight-i18n-config" || id === "\0virtual:rimelight/i18n") return `
24
24
  export const locales = ${JSON.stringify(locales)};
25
+ export const languages = ${JSON.stringify(locales)};
25
26
  export const defaultLocale = ${JSON.stringify(defaultLocale)};
26
27
  export const prefixDefaultLocale = ${JSON.stringify(prefixDefaultLocale)};
27
28
  export const translations = ${JSON.stringify(normalisedTranslations)};
29
+ export default { locales: ${JSON.stringify(locales)}, defaultLocale: ${JSON.stringify(defaultLocale)} };
28
30
  `;
29
31
  return null;
30
32
  },
package/dist/plugin.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as i18n } from "./plugin-jh44sjC0.mjs";
1
+ import { t as i18n } from "./plugin-wd6n-2-C.mjs";
2
2
  export { i18n, i18n as rimelightI18n };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rimelight/i18n",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "private": false,
5
5
  "description": "Rimelight Entertainment's Internationalization Package",
6
6
  "homepage": "https://rimelight.com/docs",
@@ -53,11 +53,11 @@
53
53
  "nanostores": "1.5.3"
54
54
  },
55
55
  "devDependencies": {
56
- "@rimelight/config": "0.0.9",
56
+ "@rimelight/config": "0.0.12",
57
57
  "typescript": "6.0.3"
58
58
  },
59
59
  "engines": {
60
- "node": ">=26.8.2"
60
+ "node": ">=26.9.0"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "vp pack",