- settings → general → language picks system, Chinese or English; the choice is stored on the device and read before the first frame - our Chinese strings are translated through tr()/trArgs() and AppText, with the English in lib/l10n/en_*.dart; a missing entry falls back to Chinese and a test checks that every literal in lib has one - AppText rebuilds on a language change (it depends on the resolved locale), so const text and whole pages switch at once; the built-in date/time pickers and selection menu follow the same language - server and user data (titles, messages, prompts, paths) is never translated - the chat list sits in a SelectionArea: long-press selects message text and shows the copy/select-all menu - bump to 0.5.2
5 lines
229 B
Dart
5 lines
229 B
Dart
// English strings for one part of the app; merged into L10n's table. Keys are
|
|
// the Chinese text the code writes, including {0}, {1} placeholders for text
|
|
// that is built from parts.
|
|
const Map<String, String> enSettings = {};
|