@glossarist/concept-browser 0.7.12 → 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.
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.12",
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": {
@@ -536,12 +536,11 @@ function navTitle(page: { route: string }): string {
536
536
  <button
537
537
  v-if="group.label"
538
538
  @click="toggleGroup(group.id)"
539
- class="w-full flex items-center gap-1.5 px-2 py-1.5 rounded-lg text-xs uppercase tracking-wide font-medium transition-colors hover:bg-ink-50"
539
+ class="w-full flex items-start gap-1.5 px-2 py-1.5 rounded-lg text-xs font-semibold transition-colors hover:bg-ink-50"
540
540
  :style="group.color ? { color: group.color } : {}"
541
541
  >
542
- <span class="w-3 text-[10px]">{{ isGroupExpanded(group.id) ? '▾' : '▸' }}</span>
543
- <span class="flex-1 text-left truncate">{{ group.label }}</span>
544
- <span class="text-[10px] font-normal opacity-50">{{ group.entries.length }}</span>
542
+ <span class="w-3 text-[10px] mt-0.5 flex-shrink-0">{{ isGroupExpanded(group.id) ? '▾' : '▸' }}</span>
543
+ <span class="flex-1 text-left leading-snug">{{ group.label }}</span>
545
544
  </button>
546
545
 
547
546
  <!-- Group entries -->