mirror of
https://github.com/wanghongenpin/proxypin.git
synced 2026-04-01 07:29:48 +08:00
15 lines
350 B
Dart
15 lines
350 B
Dart
import 'dart:ui';
|
|
|
|
import 'package:network_proxy/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';
|
|
}
|
|
}
|