瀏覽代碼

[feat]升级字符串生成插件,增加多语言配置

云天逵 6 月之前
父節點
當前提交
d7bb770c82
共有 3 個文件被更改,包括 8 次插入5 次删除
  1. 1 1
      lib/resource/string.gen.dart
  2. 3 3
      pubspec.lock
  3. 4 1
      pubspec.yaml

+ 1 - 1
lib/resource/string.gen.dart

@@ -355,7 +355,7 @@ class StringName {
 class StringMultiSource {
   StringMultiSource._();
   static const Map<String, Map<String, String>> values = {
-    'zh_CN': {
+    'en_US': {
       'app_name': '追爱小键盘',
       'main_tab_keyboard': '键盘',
       'main_tab_mine': '我的',

+ 3 - 3
pubspec.lock

@@ -1508,11 +1508,11 @@ packages:
     dependency: "direct dev"
     description:
       path: "."
-      ref: "v0.0.3"
-      resolved-ref: eb3371f025bab7df1270ce1511523648045d853a
+      ref: "v0.0.4"
+      resolved-ref: "1ae56117cf6163d0803b3ed993655516a0a29b3a"
       url: "http://git.atmob.com:28999/Atmob-Flutter/string_get_runner.git"
     source: git
-    version: "0.0.3"
+    version: "0.0.4"
   string_scanner:
     dependency: transitive
     description:

+ 4 - 1
pubspec.yaml

@@ -183,7 +183,7 @@ dev_dependencies:
   string_get_runner:
     git:
       url: http://git.atmob.com:28999/Atmob-Flutter/string_get_runner.git
-      ref: v0.0.3
+      ref: v0.0.4
 
   flutter_gen_runner: 5.10.0
 
@@ -200,6 +200,9 @@ flutter_gen:
       - assets/color/common_color.xml
       - assets/color/color.xml
 
+flutter_string_get:
+  language: 'en_US'
+