@kelnishi/satmouse-client 0.18.3 → 0.18.4

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 (2) hide show
  1. package/README.md +26 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -152,6 +152,32 @@ manager.onButtonEvent((event) => {
152
152
  });
153
153
  ```
154
154
 
155
+ ## Localization
156
+
157
+ Web Components use English by default. Override strings with `setLocale()`:
158
+
159
+ ```typescript
160
+ import { setLocale, DEFAULT_LOCALE } from "@kelnishi/satmouse-client/elements";
161
+
162
+ // Partial override — only the keys you provide are replaced
163
+ setLocale({
164
+ connected: "Conectado",
165
+ disconnected: "Desconectado",
166
+ noDevices: "Sin dispositivos",
167
+ restoreDefaults: "Restaurar valores predeterminados",
168
+ });
169
+ ```
170
+
171
+ `DEFAULT_LOCALE` exports all string keys with their English defaults, so translation tooling can iterate them:
172
+
173
+ ```typescript
174
+ import { DEFAULT_LOCALE } from "@kelnishi/satmouse-client/elements";
175
+
176
+ // Extract all keys for your i18n pipeline
177
+ const keys = Object.keys(DEFAULT_LOCALE);
178
+ // ["connected", "connecting", "disconnected", "noDevices", ...]
179
+ ```
180
+
155
181
  ## Connection Options
156
182
 
157
183
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kelnishi/satmouse-client",
3
- "version": "0.18.3",
3
+ "version": "0.18.4",
4
4
  "description": "Client SDK for SatMouse 6DOF spatial input bridge",
5
5
  "type": "module",
6
6
  "sideEffects": [