mirror of
https://github.com/wanghongenpin/proxypin.git
synced 2026-03-27 06:39:45 +08:00
15 lines
345 B
Dart
15 lines
345 B
Dart
import 'dart:ui';
|
|
|
|
import 'package:proxypin/ui/configuration.dart';
|
|
|
|
/// @author wanghongen
|
|
class Localizations {
|
|
static bool get isZH {
|
|
if (AppConfiguration.current?.language != null) {
|
|
return AppConfiguration.current?.language!.languageCode == 'zh';
|
|
}
|
|
|
|
return PlatformDispatcher.instance.locale.languageCode == 'zh';
|
|
}
|
|
}
|