Skip to content

Commit 43878b7

Browse files
committed
fix: add values-en symlink for CLI source locale resolution
Android stores default strings in values/ (no locale suffix), but the CLI resolves [locale] literally and looks for values-en/strings.xml. The symlink bridges the two conventions.
1 parent 11d0bde commit 43878b7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ Demonstrates automated localization for Android `strings.xml` resource files usi
77
## What's inside
88

99
- `app/src/main/res/values/strings.xml` - source strings (English)
10+
- `app/src/main/res/values-en` - symlink to `values/` (see below)
1011
- `i18n.json` - Lingo.dev CLI configuration
1112
- `.github/workflows/translate.yml` - GitHub Actions workflow
1213

14+
## Why the symlink?
15+
16+
Android stores default strings in `values/` (no locale suffix), but target locales go in `values-es/`, `values-fr/`, etc. The CLI config uses `values-[locale]/strings.xml` and resolves `[locale]` literally - so it looks for `values-en/strings.xml` as the source. The symlink `values-en -> values` bridges Android's convention with the CLI's pattern.
17+
1318
## Quick start
1419

1520
1. Fork this repo

app/src/main/res/values-en

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
values

0 commit comments

Comments
 (0)