Skip to content

Commit 55d1e25

Browse files
author
ChenDoXiu
committed
Refactor localization messages and improve formatting
- Updated the localization messages for Traditional Chinese in messages_zh_TW.dart to improve readability and maintainability. - Adjusted the formatting in l10n.dart for better code style consistency. - Added an .editorconfig file to enforce coding standards across the project.
1 parent 82ced3f commit 55d1e25

35 files changed

+9786
-10241
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
root = true
2+
3+
[*.dart]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true

.github/workflows/flutter-build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ name: 正式发布Flutter应用
44
# push:
55

66
on:
7-
push:
8-
tags:
9-
- "*"
7+
workflow_dispatch:
108
jobs:
119
pre-build:
1210
name: 预构建

.github/workflows/flutter-pre-build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,32 @@ jobs:
193193
name: build-macos
194194
path: |
195195
MoeKey-${{ needs.pre-build.outputs.APP_VERSION }}-macOS-universal-release.zip
196+
197+
build-ios:
198+
name: 编译iOS
199+
runs-on: macos-latest
200+
needs: [ pre-build ]
201+
steps:
202+
- name: 拉取代码
203+
uses: actions/checkout@v4
204+
205+
- name: 设置Flutter环境
206+
uses: subosito/flutter-action@v2
207+
with:
208+
channel: "stable"
209+
cache: true
210+
211+
- name: 安装依赖项
212+
run: flutter pub get
213+
214+
- name: 运行代码生成器
215+
run: dart run build_runner build
216+
217+
- name: 编译IPA (不签名)
218+
run: flutter build ipa --release --no-codesign
219+
220+
- name: 上传IPA到工作流程
221+
uses: actions/upload-artifact@v4
222+
with:
223+
name: build-ios-unsigned
224+
path: build/ios/ipa/*.ipa

lib/generated/intl/messages_af_ZA.dart

Lines changed: 249 additions & 256 deletions
Large diffs are not rendered by default.

lib/generated/intl/messages_all.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ import 'messages_zh_CN.dart' as messages_zh_cn;
4848
import 'messages_zh_TW.dart' as messages_zh_tw;
4949

5050
typedef Future<dynamic> LibraryLoader();
51-
5251
Map<String, LibraryLoader> _deferredLibraries = {
5352
'af_ZA': () => new SynchronousFuture(null),
5453
'ar_SA': () => new SynchronousFuture(null),

lib/generated/intl/messages_ar_SA.dart

Lines changed: 327 additions & 344 deletions
Large diffs are not rendered by default.

lib/generated/intl/messages_ca_ES.dart

Lines changed: 249 additions & 256 deletions
Large diffs are not rendered by default.

lib/generated/intl/messages_cs_CZ.dart

Lines changed: 353 additions & 378 deletions
Large diffs are not rendered by default.

lib/generated/intl/messages_da_DK.dart

Lines changed: 353 additions & 371 deletions
Large diffs are not rendered by default.

lib/generated/intl/messages_de_DE.dart

Lines changed: 369 additions & 392 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)