mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-22 06:28:39 +02:00
Part 1
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:cake_wallet/di.dart';
|
||||
import 'package:cake_wallet/store/settings_store.dart';
|
||||
|
||||
class DateFormatter {
|
||||
static String get currentLocalFormat {
|
||||
final isUSA = getIt.get<SettingsStore>().currentLocale == 'en_US';
|
||||
final format = isUSA ? 'yyyy.MM.dd, HH:mm' : 'dd.MM.yyyy, HH:mm';
|
||||
|
||||
return format;
|
||||
}
|
||||
|
||||
static DateFormat withCurrentLocal() =>
|
||||
DateFormat(currentLocalFormat, getIt.get<SettingsStore>().languageCode);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
class LanguageList {
|
||||
static const english = 'English';
|
||||
static const chineseSimplified = 'Chinese (simplified)';
|
||||
static const dutch = 'Dutch';
|
||||
static const german = 'German';
|
||||
static const japanese = 'Japanese';
|
||||
static const portuguese = 'Portuguese';
|
||||
static const russian = 'Russian';
|
||||
static const spanish = 'Spanish';
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:mobx/mobx.dart';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user