Skip to content

Commit 5a02a6b

Browse files
committed
fix: translation
1 parent 7b851bb commit 5a02a6b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@
3636
## Localization Notes
3737

3838
- Update English copy only in `packages/locales/lib/human/en.json`; run `yarn locales:generate` to refresh derived languages.
39+
- When adding a new translation key (for example when calling `t('some_key')`), create the English entry in `packages/locales/lib/human/en.json` in the same change. NEVER use fallback strings.
3940
- Never edit generated locale files directly—the automation pipeline syncs translations downstream.

packages/locales/lib/human/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,7 @@
660660
"version": "Version",
661661
"route_tags": "Route Tags",
662662
"routes": "Routes",
663+
"compact_route_view": "Compact Route View",
663664
"route_type": "Route Type",
664665
"route_short_code": "Route Share Code: ",
665666
"route_anchor_count_one": "{{count}} Route",

src/features/drawer/Routes.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const RouteSlider = () => {
4848
/>
4949
}
5050
>
51-
<ListItemText primary={t('compact_route_view', 'Compact Route View')} />
51+
<ListItemText primary={t('compact_route_view')} />
5252
</ListItem>
5353
<ListItem>
5454
<SliderTile

0 commit comments

Comments
 (0)