@glossarist/concept-browser 0.7.13 → 0.7.14

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 +24 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -264,6 +264,30 @@ datasetGroups:
264
264
 
265
265
  Datasets not assigned to any group appear at the bottom of the dataset list. If `datasetGroups` is omitted, all datasets are displayed as a flat list (the default behavior).
266
266
 
267
+ ### Internationalization
268
+
269
+ All localized text uses language maps — a `translations` field keyed by ISO 639-2 language codes. The top-level `title` and `description` fields hold the default-language text. The `translations` map provides overrides for additional languages:
270
+
271
+ ```yaml
272
+ datasets:
273
+ - id: viml-2022
274
+ title: "OIML V 1:2022"
275
+ description: "Current edition with 135 terms..."
276
+ translations:
277
+ fra:
278
+ title: "OIML V 1:2022"
279
+ description: "Édition actuelle comprenant 135 termes..."
280
+
281
+ datasetGroups:
282
+ - id: viml
283
+ label: "International Vocabulary of Legal Metrology"
284
+ translations:
285
+ fra:
286
+ label: "Vocabulaire international de métrologie légale"
287
+ ```
288
+
289
+ This pattern applies everywhere localized text appears: site-level translations, dataset translations, group translations, and page translations. Do not use language suffixes like `_fra` — use nested language maps instead.
290
+
267
291
  ### Cross-reference mapping
268
292
 
269
293
  ```yaml
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glossarist/concept-browser",
3
- "version": "0.7.13",
3
+ "version": "0.7.14",
4
4
  "description": "Vue SPA for browsing Glossarist terminology datasets with cross-reference resolution, graph visualization, and multi-language support",
5
5
  "type": "module",
6
6
  "bin": {