Fix local dev config and ALOTTTT OFF FLUTTER, im tired boss..
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
class AppStrings {
|
||||
final String localeCode;
|
||||
|
||||
const AppStrings(this.localeCode);
|
||||
|
||||
static const supportedLocales = ['id-ID', 'en-US'];
|
||||
|
||||
String get walkGuideStarted => _pick(
|
||||
id: 'WalkGuide dimulai',
|
||||
en: 'WalkGuide started',
|
||||
);
|
||||
|
||||
String get walkGuideStopped => _pick(
|
||||
id: 'WalkGuide dihentikan',
|
||||
en: 'WalkGuide stopped',
|
||||
);
|
||||
|
||||
String get sosSent => _pick(
|
||||
id: 'SOS terkirim. Guardian sudah diberi tahu.',
|
||||
en: 'SOS sent. Your guardian has been alerted.',
|
||||
);
|
||||
|
||||
String get notificationsOpened => _pick(
|
||||
id: 'Notifikasi dibuka',
|
||||
en: 'Notifications opened',
|
||||
);
|
||||
|
||||
String _pick({required String id, required String en}) {
|
||||
return localeCode == 'en-US' ? en : id;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user