mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 12:57:24 +00:00
15 lines
327 B
Dart
15 lines
327 B
Dart
import 'package:pixes/foundation/app.dart';
|
|
|
|
extension Translation on String {
|
|
String get tl {
|
|
var locale = App.locale;
|
|
return translation["${locale.languageCode}_${locale.countryCode}"]?[this] ??
|
|
this;
|
|
}
|
|
|
|
static const translation = <String, Map<String, String>>{
|
|
"zh_CN": {},
|
|
"zh_TW": {},
|
|
};
|
|
}
|