新增多语言转换 mqtt支持websocket

This commit is contained in:
2025-05-29 11:48:46 +08:00
parent cff5448fe0
commit 069ca209d0
7 changed files with 182 additions and 35 deletions

View File

@@ -0,0 +1,8 @@
import '../Language.dart';
extension StringTransform on String {
String tr({Map<String, String>? params, String? languageCode}) {
return Language.getTranslation(this,
params: params, languageCode: languageCode);
}
}