Skip to content

Commit 2e8a051

Browse files
committed
I18n rules for UI localization
1 parent 2d814da commit 2e8a051

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

rules.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,46 @@ PROPERTY NAMING POLICY
341341

342342
----------------------------------------------------------------
343343

344+
INTERNATIONALIZATION AND REVERSE TRANSLATION RULES
345+
346+
1. The assistant MUST use `*ResourceBundle.properties` files
347+
for UI localization.
348+
349+
The value inside `{...}` MUST be treated
350+
as the lookup key that lsFusion resolves
351+
according to the current locale.
352+
353+
2. The assistant MUST first determine
354+
whether reverse translation is used
355+
in the current project area.
356+
357+
If it is used,
358+
the assistant MUST continue using it
359+
in that area
360+
and MUST follow the existing project policy.
361+
362+
The assistant MUST keep id selection
363+
consistent with the established pattern
364+
already used there.
365+
366+
The assistant MUST NOT introduce
367+
a new explicit id policy
368+
unless the user requests it.
369+
370+
3. Reverse translation means
371+
translating in the opposite direction
372+
of normal UI localization:
373+
not `key -> localized text`,
374+
but `localized text -> key`,
375+
and then, if needed, to another locale.
376+
377+
If ids are not specified explicitly in code,
378+
this canonical value is the source-language text itself,
379+
or its normalized stable form,
380+
so it effectively plays the role of the key.
381+
382+
----------------------------------------------------------------
383+
344384
FORM RULES
345385

346386
1. To place several objects in one table at once,

0 commit comments

Comments
 (0)