@powerlines/plugin-i18next 0.1.531 → 0.1.533

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.
@@ -19,11 +19,10 @@ var __copyProps = (to, from, except, desc) => {
19
19
  }
20
20
  return to;
21
21
  };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
23
23
  value: mod,
24
24
  enumerable: true
25
25
  }) : target, mod));
26
26
 
27
27
  //#endregion
28
-
29
28
  exports.__toESM = __toESM;
@@ -14,7 +14,8 @@ let _stryke_path_correct_path = require("@stryke/path/correct-path");
14
14
  function getOutputPath(outputTemplate, language, namespace) {
15
15
  if (!outputTemplate) return (0, _stryke_path_correct_path.correctPath)(`locales/${language}/${namespace ?? "translation"}.json`);
16
16
  if (typeof outputTemplate === "function") try {
17
- return (0, _stryke_path_correct_path.correctPath)(String(outputTemplate(language, namespace)).replace(/\/{2,}/g, "/"));
17
+ const result = String(outputTemplate(language, namespace));
18
+ return (0, _stryke_path_correct_path.correctPath)(result.replace(/\/{2,}/g, "/"));
18
19
  } catch {
19
20
  return (0, _stryke_path_correct_path.correctPath)(`locales/${language}/${namespace ?? "translation"}.json`);
20
21
  }
@@ -14,7 +14,8 @@ import { correctPath } from "@stryke/path/correct-path";
14
14
  function getOutputPath(outputTemplate, language, namespace) {
15
15
  if (!outputTemplate) return correctPath(`locales/${language}/${namespace ?? "translation"}.json`);
16
16
  if (typeof outputTemplate === "function") try {
17
- return correctPath(String(outputTemplate(language, namespace)).replace(/\/{2,}/g, "/"));
17
+ const result = String(outputTemplate(language, namespace));
18
+ return correctPath(result.replace(/\/{2,}/g, "/"));
18
19
  } catch {
19
20
  return correctPath(`locales/${language}/${namespace ?? "translation"}.json`);
20
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-i18next",
3
- "version": "0.1.531",
3
+ "version": "0.1.533",
4
4
  "private": false,
5
5
  "description": "A Powerlines plugin to use i18next for internationalization.",
6
6
  "keywords": ["i18next", "powerlines", "storm-software", "powerlines-plugin"],
@@ -111,12 +111,12 @@
111
111
  "defu": "^6.1.7",
112
112
  "i18next-cli": "^1.67.3",
113
113
  "i18next-resources-for-ts": "^2.1.0",
114
- "powerlines": "^0.47.173"
114
+ "powerlines": "^0.47.175"
115
115
  },
116
116
  "devDependencies": {
117
- "@powerlines/plugin-plugin": "^0.12.585",
117
+ "@powerlines/plugin-plugin": "^0.12.587",
118
118
  "@types/node": "^25.9.5"
119
119
  },
120
120
  "publishConfig": { "access": "public" },
121
- "gitHead": "c31b8b5c808f32f95e006ae20b45d67a23ccead6"
121
+ "gitHead": "f81b909479c2bb719fb63c1c3a94763fa5b737f2"
122
122
  }