Skip to content

Commit 057f264

Browse files
Copilotwan92hen
andauthored
docs: clarify frontend vs backend locale file naming conventions
Agent-Logs-Url: https://github.com/1Panel-dev/1Panel/sessions/e6a41d10-557e-4ca1-a78b-18888a9f17be Co-authored-by: wan92hen <27671436+wan92hen@users.noreply.github.com>
1 parent 4525f31 commit 057f264

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/TRANSLATION.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,11 @@ Use [BCP 47](https://www.ietf.org/rfc/bcp/bcp47.txt) locale codes. Examples used
218218
| Brazilian Portuguese | `pt-BR` |
219219
| Spanish (Spain) | `es-ES` |
220220

221-
Use lowercase for simple codes (`ja`, `ko`) and the standard casing for regional variants (`pt-BR`, `es-ES`, `zh-Hant`). The frontend file name should be the lowercase version of the locale code (e.g. `pt-br.ts`, `es-es.ts`, `zh-hant.ts`), while the YAML file name mirrors the locale code exactly (`pt-BR.yaml`, `es-ES.yaml`, `zh-Hant.yaml`).
221+
Use lowercase for simple codes (`ja`, `ko`) and the standard BCP 47 casing for regional variants (`pt-BR`, `es-ES`, `zh-Hant`).
222+
223+
**Frontend TypeScript file names** use all-lowercase with hyphens preserved exactly as they appear in the existing `frontend/src/lang/modules/` directory (e.g. `pt-br.ts`, `es-es.ts`, `zh-hant.ts`).
224+
225+
**Backend YAML file names** mirror the locale code exactly, preserving the original casing (e.g. `pt-BR.yaml`, `es-ES.yaml`, `zh-Hant.yaml`).
222226

223227
---
224228

0 commit comments

Comments
 (0)