@asafarim/shared-i18n 0.7.0 → 0.8.1

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.
Files changed (82) hide show
  1. package/README.md +71 -1
  2. package/demo/README.md +148 -0
  3. package/demo/dist/Icon Dropdown_Limited Languages.png +0 -0
  4. package/demo/dist/Select Dropdown_Text Only.png +0 -0
  5. package/demo/dist/assets/favicon-BZYZvBLo.svg +4 -0
  6. package/demo/dist/assets/index-BdjqKw_N.css +1 -0
  7. package/demo/dist/assets/index-C1Tq1uEr.js +191 -0
  8. package/demo/dist/favicon.svg +4 -0
  9. package/demo/dist/index.html +27 -0
  10. package/demo/dist/logo.svg +24 -0
  11. package/demo/node_modules/.bin/browserslist +21 -0
  12. package/demo/node_modules/.bin/browserslist.CMD +12 -0
  13. package/demo/node_modules/.bin/browserslist.ps1 +41 -0
  14. package/demo/node_modules/.bin/tsc +4 -4
  15. package/demo/node_modules/.bin/tsc.CMD +12 -0
  16. package/demo/node_modules/.bin/tsc.ps1 +41 -0
  17. package/demo/node_modules/.bin/tsserver +4 -4
  18. package/demo/node_modules/.bin/tsserver.CMD +12 -0
  19. package/demo/node_modules/.bin/tsserver.ps1 +41 -0
  20. package/demo/node_modules/.bin/vite +4 -4
  21. package/demo/node_modules/.bin/vite.CMD +12 -0
  22. package/demo/node_modules/.bin/vite.ps1 +41 -0
  23. package/demo/node_modules/.vite/deps/@asafarim_country-language-selector.js +848 -0
  24. package/demo/node_modules/.vite/deps/@asafarim_country-language-selector.js.map +7 -0
  25. package/demo/node_modules/.vite/deps/_metadata.json +76 -0
  26. package/demo/node_modules/.vite/deps/chunk-5WRI5ZAA.js +30 -0
  27. package/demo/node_modules/.vite/deps/chunk-5WRI5ZAA.js.map +7 -0
  28. package/demo/node_modules/.vite/deps/chunk-B3AHR5EX.js +1004 -0
  29. package/demo/node_modules/.vite/deps/chunk-B3AHR5EX.js.map +7 -0
  30. package/demo/node_modules/.vite/deps/chunk-E6BG6WAU.js +292 -0
  31. package/demo/node_modules/.vite/deps/chunk-E6BG6WAU.js.map +7 -0
  32. package/demo/node_modules/.vite/deps/chunk-MVARZQEG.js +280 -0
  33. package/demo/node_modules/.vite/deps/chunk-MVARZQEG.js.map +7 -0
  34. package/demo/node_modules/.vite/deps/i18next-browser-languagedetector.js +400 -0
  35. package/demo/node_modules/.vite/deps/i18next-browser-languagedetector.js.map +7 -0
  36. package/demo/node_modules/.vite/deps/i18next.js +2392 -0
  37. package/demo/node_modules/.vite/deps/i18next.js.map +7 -0
  38. package/demo/node_modules/.vite/deps/package.json +3 -0
  39. package/demo/node_modules/.vite/deps/react-dom.js +6 -0
  40. package/demo/node_modules/.vite/deps/react-dom.js.map +7 -0
  41. package/demo/node_modules/.vite/deps/react-dom_client.js +20217 -0
  42. package/demo/node_modules/.vite/deps/react-dom_client.js.map +7 -0
  43. package/demo/node_modules/.vite/deps/react-i18next.js +869 -0
  44. package/demo/node_modules/.vite/deps/react-i18next.js.map +7 -0
  45. package/demo/node_modules/.vite/deps/react.js +5 -0
  46. package/demo/node_modules/.vite/deps/react.js.map +7 -0
  47. package/demo/node_modules/.vite/deps/react_jsx-dev-runtime.js +278 -0
  48. package/demo/node_modules/.vite/deps/react_jsx-dev-runtime.js.map +7 -0
  49. package/demo/node_modules/.vite/deps/react_jsx-runtime.js +6 -0
  50. package/demo/node_modules/.vite/deps/react_jsx-runtime.js.map +7 -0
  51. package/demo/package.json +27 -24
  52. package/demo/public/favicon.svg +4 -4
  53. package/demo/public/logo.svg +24 -24
  54. package/demo/src/App.tsx +129 -116
  55. package/demo/src/components/CountryLanguageDemo.tsx +140 -0
  56. package/demo/src/components/GetStartedSection.tsx +56 -56
  57. package/demo/src/components/KeyTable.tsx +29 -29
  58. package/demo/src/components/LanguageBar.tsx +102 -62
  59. package/demo/src/components/LanguageSwitcherDemo.module.css +114 -113
  60. package/demo/src/components/LanguageSwitcherDemo.tsx +256 -202
  61. package/demo/src/components/Logo.tsx +6 -6
  62. package/demo/src/components/OverviewSection.tsx +43 -43
  63. package/demo/src/components/Panel.tsx +15 -15
  64. package/demo/src/components/StatusCard.tsx +109 -109
  65. package/demo/src/index.css +644 -644
  66. package/demo/src/locales/de/demo.json +85 -0
  67. package/demo/src/locales/en/demo.json +85 -85
  68. package/demo/src/locales/fr/demo.json +85 -85
  69. package/demo/src/locales/it/demo.json +85 -0
  70. package/demo/src/locales/nl/demo.json +85 -85
  71. package/demo/src/main.tsx +29 -24
  72. package/demo/tsconfig.json +18 -18
  73. package/demo/tsconfig.node.json +10 -10
  74. package/demo/tsconfig.tsbuildinfo +1 -1
  75. package/demo/vite-env.d.ts +7 -7
  76. package/demo/vite.config.d.ts +2 -2
  77. package/demo/vite.config.js +10 -10
  78. package/dist/components/LanguageSwitcher.module.css +303 -303
  79. package/dist/locales/de/common.json +68 -0
  80. package/dist/locales/it/common.json +68 -0
  81. package/dist/tsconfig.tsbuildinfo +1 -1
  82. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
2
+ <rect width="100" height="100" fill="#4F46E5"/>
3
+ <text x="50" y="65" font-size="60" font-weight="bold" text-anchor="middle" fill="white">i18n</text>
4
+ </svg>
@@ -0,0 +1,27 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/shared-i18n/assets/favicon-BZYZvBLo.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Shared i18n demo</title>
8
+ <script type="module" crossorigin src="/shared-i18n/assets/index-C1Tq1uEr.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/shared-i18n/assets/index-BdjqKw_N.css">
10
+ </head>
11
+ <body>
12
+ <div id="root"></div>
13
+ <script
14
+ data-name="BMC-Widget"
15
+ data-cfasync="false"
16
+ src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js"
17
+ data-id="asafarim"
18
+ data-description="Support me on Buy me a coffee!"
19
+ data-message=""
20
+ data-color="#5F7FFF"
21
+ data-position="Right"
22
+ data-x_margin="18"
23
+ data-y_margin="18"
24
+ ></script>
25
+
26
+ </body>
27
+ </html>
@@ -0,0 +1,24 @@
1
+ <svg width="180" height="180" viewBox="0 0 180 180" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <defs>
3
+ <linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%">
4
+ <stop offset="0%" stop-color="#3A5AFE" />
5
+ <stop offset="100%" stop-color="#14B8A6" />
6
+ </linearGradient>
7
+ <linearGradient id="accent" x1="0%" y1="0%" x2="0%" y2="100%">
8
+ <stop offset="0%" stop-color="#FFFFFF" stop-opacity="0.9" />
9
+ <stop offset="100%" stop-color="#FFFFFF" stop-opacity="0.2" />
10
+ </linearGradient>
11
+ <filter id="shadow" x="-20%" y="-20%" width="140%" height="140%" color-interpolation-filters="sRGB">
12
+ <feDropShadow dx="0" dy="8" stdDeviation="12" flood-color="#0B1220" flood-opacity="0.28" />
13
+ </filter>
14
+ </defs>
15
+ <rect width="180" height="180" rx="32" fill="url(#bg)" filter="url(#shadow)" />
16
+ <g transform="translate(45 45)">
17
+ <path d="M45 0C20.147 0 0 20.147 0 45C0 69.853 20.147 90 45 90C69.853 90 90 69.853 90 45C90 20.147 69.853 0 45 0ZM45 72C29.088 72 15.75 58.662 15.75 42.75C15.75 26.838 29.088 13.5 45 13.5C60.912 13.5 74.25 26.838 74.25 42.75C74.25 58.662 60.912 72 45 72Z" fill="white" opacity="0.2" />
18
+ <path d="M24 27H66C70.971 27 75 31.029 75 36V54C75 58.971 70.971 63 66 63H24C19.029 63 15 58.971 15 54V36C15 31.029 19.029 27 24 27Z" fill="url(#accent)" />
19
+ <path d="M36 54V45C36 40.029 40.029 36 45 36C49.971 36 54 40.029 54 45V54" stroke="#0B1220" stroke-width="4" stroke-linecap="round" />
20
+ <circle cx="45" cy="21" r="6" fill="white" />
21
+ <path d="M33 69H57" stroke="white" stroke-width="4" stroke-linecap="round" opacity="0.7" />
22
+ <path d="M27 15H63" stroke="white" stroke-width="4" stroke-linecap="round" opacity="0.4" />
23
+ </g>
24
+ </svg>
@@ -0,0 +1,21 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*|*MINGW*|*MSYS*)
6
+ if command -v cygpath > /dev/null 2>&1; then
7
+ basedir=`cygpath -w "$basedir"`
8
+ fi
9
+ ;;
10
+ esac
11
+
12
+ if [ -z "$NODE_PATH" ]; then
13
+ export NODE_PATH="/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/browserslist@4.28.1/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/node_modules"
14
+ else
15
+ export NODE_PATH="/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/browserslist@4.28.1/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/node_modules:$NODE_PATH"
16
+ fi
17
+ if [ -x "$basedir/node" ]; then
18
+ exec "$basedir/node" "$basedir/../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" "$@"
19
+ else
20
+ exec node "$basedir/../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" "$@"
21
+ fi
@@ -0,0 +1,12 @@
1
+ @SETLOCAL
2
+ @IF NOT DEFINED NODE_PATH (
3
+ @SET "NODE_PATH=C:\repos\my-tools\shared-i18n\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\browserslist@4.28.1\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\node_modules"
4
+ ) ELSE (
5
+ @SET "NODE_PATH=C:\repos\my-tools\shared-i18n\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\browserslist@4.28.1\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\node_modules;%NODE_PATH%"
6
+ )
7
+ @IF EXIST "%~dp0\node.exe" (
8
+ "%~dp0\node.exe" "%~dp0\..\..\..\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\cli.js" %*
9
+ ) ELSE (
10
+ @SET PATHEXT=%PATHEXT:;.JS;=;%
11
+ node "%~dp0\..\..\..\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\cli.js" %*
12
+ )
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env pwsh
2
+ $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
+
4
+ $exe=""
5
+ $pathsep=":"
6
+ $env_node_path=$env:NODE_PATH
7
+ $new_node_path="C:\repos\my-tools\shared-i18n\node_modules\.pnpm\browserslist@4.28.1\node_modules\browserslist\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\browserslist@4.28.1\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\node_modules"
8
+ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
9
+ # Fix case when both the Windows and Linux builds of Node
10
+ # are installed in the same directory
11
+ $exe=".exe"
12
+ $pathsep=";"
13
+ } else {
14
+ $new_node_path="/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/browserslist@4.28.1/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/node_modules"
15
+ }
16
+ if ([string]::IsNullOrEmpty($env_node_path)) {
17
+ $env:NODE_PATH=$new_node_path
18
+ } else {
19
+ $env:NODE_PATH="$new_node_path$pathsep$env_node_path"
20
+ }
21
+
22
+ $ret=0
23
+ if (Test-Path "$basedir/node$exe") {
24
+ # Support pipeline input
25
+ if ($MyInvocation.ExpectingInput) {
26
+ $input | & "$basedir/node$exe" "$basedir/../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
27
+ } else {
28
+ & "$basedir/node$exe" "$basedir/../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
29
+ }
30
+ $ret=$LASTEXITCODE
31
+ } else {
32
+ # Support pipeline input
33
+ if ($MyInvocation.ExpectingInput) {
34
+ $input | & "node$exe" "$basedir/../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
35
+ } else {
36
+ & "node$exe" "$basedir/../../../node_modules/.pnpm/browserslist@4.28.1/node_modules/browserslist/cli.js" $args
37
+ }
38
+ $ret=$LASTEXITCODE
39
+ }
40
+ $env:NODE_PATH=$env_node_path
41
+ exit $ret
@@ -10,12 +10,12 @@ case `uname` in
10
10
  esac
11
11
 
12
12
  if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/node_modules"
13
+ export NODE_PATH="/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/node_modules"
14
14
  else
15
- export NODE_PATH="/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/node_modules:$NODE_PATH"
15
+ export NODE_PATH="/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/node_modules:$NODE_PATH"
16
16
  fi
17
17
  if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
18
+ exec "$basedir/node" "$basedir/../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
19
19
  else
20
- exec node "$basedir/../typescript/bin/tsc" "$@"
20
+ exec node "$basedir/../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" "$@"
21
21
  fi
@@ -0,0 +1,12 @@
1
+ @SETLOCAL
2
+ @IF NOT DEFINED NODE_PATH (
3
+ @SET "NODE_PATH=C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\node_modules"
4
+ ) ELSE (
5
+ @SET "NODE_PATH=C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\node_modules;%NODE_PATH%"
6
+ )
7
+ @IF EXIST "%~dp0\node.exe" (
8
+ "%~dp0\node.exe" "%~dp0\..\..\..\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\tsc" %*
9
+ ) ELSE (
10
+ @SET PATHEXT=%PATHEXT:;.JS;=;%
11
+ node "%~dp0\..\..\..\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\tsc" %*
12
+ )
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env pwsh
2
+ $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
+
4
+ $exe=""
5
+ $pathsep=":"
6
+ $env_node_path=$env:NODE_PATH
7
+ $new_node_path="C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\node_modules"
8
+ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
9
+ # Fix case when both the Windows and Linux builds of Node
10
+ # are installed in the same directory
11
+ $exe=".exe"
12
+ $pathsep=";"
13
+ } else {
14
+ $new_node_path="/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/node_modules"
15
+ }
16
+ if ([string]::IsNullOrEmpty($env_node_path)) {
17
+ $env:NODE_PATH=$new_node_path
18
+ } else {
19
+ $env:NODE_PATH="$new_node_path$pathsep$env_node_path"
20
+ }
21
+
22
+ $ret=0
23
+ if (Test-Path "$basedir/node$exe") {
24
+ # Support pipeline input
25
+ if ($MyInvocation.ExpectingInput) {
26
+ $input | & "$basedir/node$exe" "$basedir/../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" $args
27
+ } else {
28
+ & "$basedir/node$exe" "$basedir/../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" $args
29
+ }
30
+ $ret=$LASTEXITCODE
31
+ } else {
32
+ # Support pipeline input
33
+ if ($MyInvocation.ExpectingInput) {
34
+ $input | & "node$exe" "$basedir/../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" $args
35
+ } else {
36
+ & "node$exe" "$basedir/../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsc" $args
37
+ }
38
+ $ret=$LASTEXITCODE
39
+ }
40
+ $env:NODE_PATH=$env_node_path
41
+ exit $ret
@@ -10,12 +10,12 @@ case `uname` in
10
10
  esac
11
11
 
12
12
  if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/node_modules"
13
+ export NODE_PATH="/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/node_modules"
14
14
  else
15
- export NODE_PATH="/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/node_modules:$NODE_PATH"
15
+ export NODE_PATH="/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/node_modules:$NODE_PATH"
16
16
  fi
17
17
  if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
18
+ exec "$basedir/node" "$basedir/../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
19
19
  else
20
- exec node "$basedir/../typescript/bin/tsserver" "$@"
20
+ exec node "$basedir/../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" "$@"
21
21
  fi
@@ -0,0 +1,12 @@
1
+ @SETLOCAL
2
+ @IF NOT DEFINED NODE_PATH (
3
+ @SET "NODE_PATH=C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\node_modules"
4
+ ) ELSE (
5
+ @SET "NODE_PATH=C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\node_modules;%NODE_PATH%"
6
+ )
7
+ @IF EXIST "%~dp0\node.exe" (
8
+ "%~dp0\node.exe" "%~dp0\..\..\..\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\tsserver" %*
9
+ ) ELSE (
10
+ @SET PATHEXT=%PATHEXT:;.JS;=;%
11
+ node "%~dp0\..\..\..\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\tsserver" %*
12
+ )
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env pwsh
2
+ $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
+
4
+ $exe=""
5
+ $pathsep=":"
6
+ $env_node_path=$env:NODE_PATH
7
+ $new_node_path="C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\bin\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules\typescript\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\typescript@5.8.3\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\node_modules"
8
+ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
9
+ # Fix case when both the Windows and Linux builds of Node
10
+ # are installed in the same directory
11
+ $exe=".exe"
12
+ $pathsep=";"
13
+ } else {
14
+ $new_node_path="/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/typescript@5.8.3/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/node_modules"
15
+ }
16
+ if ([string]::IsNullOrEmpty($env_node_path)) {
17
+ $env:NODE_PATH=$new_node_path
18
+ } else {
19
+ $env:NODE_PATH="$new_node_path$pathsep$env_node_path"
20
+ }
21
+
22
+ $ret=0
23
+ if (Test-Path "$basedir/node$exe") {
24
+ # Support pipeline input
25
+ if ($MyInvocation.ExpectingInput) {
26
+ $input | & "$basedir/node$exe" "$basedir/../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" $args
27
+ } else {
28
+ & "$basedir/node$exe" "$basedir/../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" $args
29
+ }
30
+ $ret=$LASTEXITCODE
31
+ } else {
32
+ # Support pipeline input
33
+ if ($MyInvocation.ExpectingInput) {
34
+ $input | & "node$exe" "$basedir/../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" $args
35
+ } else {
36
+ & "node$exe" "$basedir/../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/bin/tsserver" $args
37
+ }
38
+ $ret=$LASTEXITCODE
39
+ }
40
+ $env:NODE_PATH=$env_node_path
41
+ exit $ret
@@ -10,12 +10,12 @@ case `uname` in
10
10
  esac
11
11
 
12
12
  if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/bin/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/node_modules"
13
+ export NODE_PATH="/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/bin/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/node_modules"
14
14
  else
15
- export NODE_PATH="/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/bin/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules:/home/runner/work/shared-i18n/shared-i18n/node_modules/.pnpm/node_modules:$NODE_PATH"
15
+ export NODE_PATH="/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/bin/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/node_modules:$NODE_PATH"
16
16
  fi
17
17
  if [ -x "$basedir/node" ]; then
18
- exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
18
+ exec "$basedir/node" "$basedir/../../../node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/bin/vite.js" "$@"
19
19
  else
20
- exec node "$basedir/../vite/bin/vite.js" "$@"
20
+ exec node "$basedir/../../../node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/bin/vite.js" "$@"
21
21
  fi
@@ -0,0 +1,12 @@
1
+ @SETLOCAL
2
+ @IF NOT DEFINED NODE_PATH (
3
+ @SET "NODE_PATH=C:\repos\my-tools\shared-i18n\node_modules\.pnpm\vite@6.4.1_@types+node@24.10.4\node_modules\vite\bin\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\vite@6.4.1_@types+node@24.10.4\node_modules\vite\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\vite@6.4.1_@types+node@24.10.4\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\node_modules"
4
+ ) ELSE (
5
+ @SET "NODE_PATH=C:\repos\my-tools\shared-i18n\node_modules\.pnpm\vite@6.4.1_@types+node@24.10.4\node_modules\vite\bin\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\vite@6.4.1_@types+node@24.10.4\node_modules\vite\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\vite@6.4.1_@types+node@24.10.4\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\node_modules;%NODE_PATH%"
6
+ )
7
+ @IF EXIST "%~dp0\node.exe" (
8
+ "%~dp0\node.exe" "%~dp0\..\..\..\node_modules\.pnpm\vite@6.4.1_@types+node@24.10.4\node_modules\vite\bin\vite.js" %*
9
+ ) ELSE (
10
+ @SET PATHEXT=%PATHEXT:;.JS;=;%
11
+ node "%~dp0\..\..\..\node_modules\.pnpm\vite@6.4.1_@types+node@24.10.4\node_modules\vite\bin\vite.js" %*
12
+ )
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env pwsh
2
+ $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
+
4
+ $exe=""
5
+ $pathsep=":"
6
+ $env_node_path=$env:NODE_PATH
7
+ $new_node_path="C:\repos\my-tools\shared-i18n\node_modules\.pnpm\vite@6.4.1_@types+node@24.10.4\node_modules\vite\bin\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\vite@6.4.1_@types+node@24.10.4\node_modules\vite\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\vite@6.4.1_@types+node@24.10.4\node_modules;C:\repos\my-tools\shared-i18n\node_modules\.pnpm\node_modules"
8
+ if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
9
+ # Fix case when both the Windows and Linux builds of Node
10
+ # are installed in the same directory
11
+ $exe=".exe"
12
+ $pathsep=";"
13
+ } else {
14
+ $new_node_path="/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/bin/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules:/mnt/c/repos/my-tools/shared-i18n/node_modules/.pnpm/node_modules"
15
+ }
16
+ if ([string]::IsNullOrEmpty($env_node_path)) {
17
+ $env:NODE_PATH=$new_node_path
18
+ } else {
19
+ $env:NODE_PATH="$new_node_path$pathsep$env_node_path"
20
+ }
21
+
22
+ $ret=0
23
+ if (Test-Path "$basedir/node$exe") {
24
+ # Support pipeline input
25
+ if ($MyInvocation.ExpectingInput) {
26
+ $input | & "$basedir/node$exe" "$basedir/../../../node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/bin/vite.js" $args
27
+ } else {
28
+ & "$basedir/node$exe" "$basedir/../../../node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/bin/vite.js" $args
29
+ }
30
+ $ret=$LASTEXITCODE
31
+ } else {
32
+ # Support pipeline input
33
+ if ($MyInvocation.ExpectingInput) {
34
+ $input | & "node$exe" "$basedir/../../../node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/bin/vite.js" $args
35
+ } else {
36
+ & "node$exe" "$basedir/../../../node_modules/.pnpm/vite@6.4.1_@types+node@24.10.4/node_modules/vite/bin/vite.js" $args
37
+ }
38
+ $ret=$LASTEXITCODE
39
+ }
40
+ $env:NODE_PATH=$env_node_path
41
+ exit $ret