@lakutata/i18n 3.1.4 → 3.1.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/README.md CHANGED
@@ -159,7 +159,7 @@ The middleware reads the languages a request asks for, preferred first, negotiat
159
159
  | HTTP (Express, Fastify) | The query parameter `?lang=`, the cookie `lang`, then `Accept-Language` (by quality) |
160
160
  | Socket.IO | The query parameter `lang`, the cookie `lang` and `Accept-Language` of the connection handshake |
161
161
  | HTTP service adapter, JSON-RPC adapter (HTTP, WebSocket) | The query parameter `lang`, the cookie `lang` and `Accept-Language` of the HTTP request (for WebSocket, of the request that opened the connection) |
162
- | Command line, Electron IPC, JSON-RPC over stdio | The variable named by `environmentVariable` (none by default), `LANGUAGE`, `LC_ALL`, `LC_MESSAGES`, `LANG`, then the process's language |
162
+ | Command line, Electron IPC, NW.js, JSON-RPC over stdio | The variable named by `environmentVariable` (none by default), `LANGUAGE`, `LC_ALL`, `LC_MESSAGES`, `LANG`, then the process's language |
163
163
  | Schedules | None: the default language |
164
164
 
165
165
  A query or cookie value that is not a language tag is skipped. Negotiation tries each requested language in turn: the
package/README.zh-CN.md CHANGED
@@ -134,7 +134,7 @@ Application.run(() => ({
134
134
  | HTTP(Express、Fastify) | Query 参数 `?lang=`、Cookie `lang`,然后是 `Accept-Language`(按权重) |
135
135
  | Socket.IO | 连接握手时的 Query 参数 `lang`、Cookie `lang` 和 `Accept-Language` |
136
136
  | HTTP 服务适配器、JSON-RPC 适配器(HTTP、WebSocket) | HTTP 请求(WebSocket 为建立连接的请求)的 Query 参数 `lang`、Cookie `lang` 和 `Accept-Language` |
137
- | 命令行、Electron IPC、stdio 上的 JSON-RPC | `environmentVariable` 指定的环境变量(默认没有)、`LANGUAGE`、`LC_ALL`、`LC_MESSAGES`、`LANG`,最后是进程的语言 |
137
+ | 命令行、Electron IPC、NW.js、stdio 上的 JSON-RPC | `environmentVariable` 指定的环境变量(默认没有)、`LANGUAGE`、`LC_ALL`、`LC_MESSAGES`、`LANG`,最后是进程的语言 |
138
138
  | 定时任务 | 无:使用默认语言 |
139
139
 
140
140
  不是语言标签的 Query 参数或 Cookie 值会被跳过。协商时依次尝试请求的每一种语言:先找完全相同的标签,再找只有语言部分的标签(`en-GB` 得到 `en`),再找同一语言的其他标签(`pt-PT` 得到 `pt-BR`,按支持的语言的顺序)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lakutata/i18n",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "The internationalization of the lakutata framework: the messages of each language by their keys (ICU MessageFormat), the language of each request, the messages of the validation.",
5
5
  "keywords": [
6
6
  "lakutata",
@@ -61,8 +61,8 @@
61
61
  "test:unit": "npm run compile && node --test \"dist/esm/tests/*.spec.js\""
62
62
  },
63
63
  "peerDependencies": {
64
- "@lakutata/core": "~3.1.4",
65
- "@lakutata/entrypoint": "~3.1.4"
64
+ "@lakutata/core": "~3.1.5",
65
+ "@lakutata/entrypoint": "~3.1.5"
66
66
  },
67
67
  "peerDependenciesMeta": {
68
68
  "@lakutata/entrypoint": {
@@ -70,7 +70,7 @@
70
70
  }
71
71
  },
72
72
  "engines": {
73
- "node": "^22.13.0 || >=24.11.0"
73
+ "node": ">=18.10.0"
74
74
  },
75
75
  "files": [
76
76
  "dist",