Text Manager
Manage your wordings in one place, with multilingual support.
Widget sample
AppsPanelText(
textKey: "hello_user",
args: {"NAME": user.name},
style: myTextStyle,
),
String sample
final String message = await AppsPanel.textManager("hello_user", {"NAME": user.name});
Arguments
You can pass param args
to AppsPanelTextManager()
and textManager()
to replace pattern.
// today = "Today it's ##DAY##, it's ##HOUR##"
AppsPanel.textManager("today", {"DAY": "Monday", "HOUR": "14h"});
// return "Today it's Monday, it's 14h"
Language/Locale
You can change the language used by the text manager at runtime using
AppsPanel.setCustomLocale(country, lang);
You can also retrieve the currently used language and country with:
await AppsPanel.getLanguage();
await AppsPanel.getCountry();
Android Text Manager
Refer to Text Manager (v5.2) :
https://appspanel.readme.io/docs/text-manager-v52
iOS Text Manager
Refer to Text Manager (v5) :
https://appspanel.readme.io/docs/ios-text-manager-v5
Updated 7 days ago