@molecule/app-locales-solid 1.0.0 → 1.0.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.
- package/README.md +67 -0
- package/package.json +9 -3
package/README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
3
|
+
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
|
+
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
|
+
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
+
Generated: 2026-08-04T00:40:21.850Z
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
# @molecule/app-locales-solid
|
|
10
|
+
|
|
11
|
+
> **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
|
|
12
|
+
> It is written to be read by coding agents as much as by people, and is generated from this
|
|
13
|
+
> package's source — edit `src/index.ts` JSDoc, not this file.
|
|
14
|
+
|
|
15
|
+
Translations for @molecule/app-solid in 79 languages
|
|
16
|
+
|
|
17
|
+
## Purpose
|
|
18
|
+
|
|
19
|
+
Provides translations for the `@molecule/app-solid` package which has 10 translation keys.
|
|
20
|
+
|
|
21
|
+
## Languages
|
|
22
|
+
|
|
23
|
+
79 languages supported: af, am, ar, az, be, bg, bn, bs, ca, cs, cy, da, de, el, en, es, et, eu, fa, fi, fil, fr, ga, gl, gu, ha, he, hi, hr, hu, hy, id, ig, is, it, ja, ka, kk, km, kn, ko, ky, lo, lt, lv, mk, ml, mn, mr, ms, mt, my, nb, ne, nl, pa, pl, pt, ro, ru, si, sk, sl, sq, sr, sv, sw, ta, te, th, tr, uk, ur, uz, vi, yo, zh, zh-TW, zu.
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import { af, am, ar } from '@molecule/app-locales-solid'
|
|
29
|
+
import type { SolidTranslationKey, SolidTranslations } from '@molecule/app-locales-solid'
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Registration
|
|
33
|
+
|
|
34
|
+
In an mlcl-scaffolded app, installed locale bonds are registered automatically by the app's i18n setup at startup — installing this package is normally all you need. To register manually (or in a custom app), pass the whole module to `registerLocaleModule` from `@molecule/app-i18n` at startup:
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { registerLocaleModule } from '@molecule/app-i18n'
|
|
38
|
+
import * as locales from '@molecule/app-locales-solid'
|
|
39
|
+
|
|
40
|
+
registerLocaleModule(locales)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Editing translations
|
|
44
|
+
|
|
45
|
+
`en.ts` is the canonical key set — every other language file mirrors its keys. To change or add strings, edit the locale files in this package (add new keys to `en.ts` first) or merge overrides at runtime with `addTranslations(locale, map)`. Never hand-write translations inline in feature code: features call `t(key, values, { defaultValue })` and THIS bond supplies the translations — inline strings bypass every other language.
|
|
46
|
+
|
|
47
|
+
## Translation Keys
|
|
48
|
+
|
|
49
|
+
| Key | English |
|
|
50
|
+
| ----------------------------------------- | --------------------------------------------------------------------------------- |
|
|
51
|
+
| `solid.error.stateOutsideProvider` | getStateProvider must be used within a MoleculeProvider with state configured |
|
|
52
|
+
| `solid.error.authOutsideProvider` | getAuthClient must be used within a MoleculeProvider with auth configured |
|
|
53
|
+
| `solid.error.themeOutsideProvider` | getThemeProvider must be used within a MoleculeProvider with theme configured |
|
|
54
|
+
| `solid.error.routerOutsideProvider` | getRouter must be used within a MoleculeProvider with router configured |
|
|
55
|
+
| `solid.error.i18nOutsideProvider` | getI18nProvider must be used within a MoleculeProvider with i18n configured |
|
|
56
|
+
| `solid.error.httpOutsideProvider` | getHttpClient must be used within a MoleculeProvider with http configured |
|
|
57
|
+
| `solid.error.storageOutsideProvider` | getStorageProvider must be used within a MoleculeProvider with storage configured |
|
|
58
|
+
| `solid.error.loggerOutsideProvider` | getLoggerProvider must be used within a MoleculeProvider with logger configured |
|
|
59
|
+
| `solid.error.useAccordionOutsideProvider` | Accordion components must be used within an Accordion |
|
|
60
|
+
| `solid.error.useToastOutsideProvider` | useToast must be used within a ToastProvider |
|
|
61
|
+
|
|
62
|
+
## Metadata
|
|
63
|
+
|
|
64
|
+
- **Type:** locales
|
|
65
|
+
- **Category:** i18n
|
|
66
|
+
- **Stack:** app
|
|
67
|
+
- **Translates:** `@molecule/app-solid`
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-locales-solid",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/molecule-dev/molecule.git",
|
|
8
|
+
"directory": "packages/app/locales/solid"
|
|
9
|
+
},
|
|
5
10
|
"type": "module",
|
|
6
11
|
"main": "dist/index.js",
|
|
7
12
|
"types": "dist/index.d.ts",
|
|
@@ -12,14 +17,15 @@
|
|
|
12
17
|
}
|
|
13
18
|
},
|
|
14
19
|
"files": [
|
|
15
|
-
"dist"
|
|
20
|
+
"dist",
|
|
21
|
+
"README.md"
|
|
16
22
|
],
|
|
17
23
|
"scripts": {
|
|
18
24
|
"build": "tsc",
|
|
19
25
|
"test": "vitest run"
|
|
20
26
|
},
|
|
21
27
|
"peerDependencies": {
|
|
22
|
-
"@molecule/app-i18n": "^1.0.
|
|
28
|
+
"@molecule/app-i18n": "^1.0.1"
|
|
23
29
|
},
|
|
24
30
|
"devDependencies": {
|
|
25
31
|
"typescript": "6.0.3",
|