-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💾 Feat: Now you can change language!
- Loading branch information
1 parent
10a7124
commit 36f3ed7
Showing
4 changed files
with
118 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
KitX Website Flutter/kitx_website/lib/utils/translations.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import 'package:get/get.dart'; | ||
|
||
/// Translation Data | ||
class Translation extends Translations { | ||
@override | ||
Map<String, Map<String, String>> get keys => { | ||
'zh_CN': { | ||
'Public_Docs': '文档', | ||
'Download_Tested': '在 %content% 上通过测试', | ||
'Download_Supported': '支持 %content%', | ||
'Download_NoTest': '尚未测试', | ||
'Download_ApplyTo': '适用于 %content%', | ||
'Bits_32': '32 位', | ||
'Bits_64': '64 位', | ||
'CPU_Bits_32': '32 位处理器', | ||
'CPU_Bits_64': '64 位处理器', | ||
'CPU_x86': 'x86 架构处理器', | ||
'CPU_x86_64': 'x86 架构 64 位处理器', | ||
'CPU_ARM': 'arm 架构处理器', | ||
'CPU_ARM64': 'arm 架构 64 位处理器', | ||
'CPU_Intel': 'Intel 芯片', | ||
'CPU_Apple': 'Apple 芯片', | ||
'With_Runtime': '包含 %runtime% 运行时', | ||
'MultiArchSupport': '包含多个架构支持', | ||
}, | ||
'en_US': { | ||
'Public_Docs': 'Docs', | ||
'Download_Tested': 'Tested on %content%', | ||
'Download_Supported': '%content% supported', | ||
'Download_NoTest': 'No test yet', | ||
'Download_ApplyTo': 'Apply to %content%', | ||
'Bits_32': '32 bits', | ||
'Bits_64': '64 bits', | ||
'CPU_Bits_32': '32 bits CPU', | ||
'CPU_Bits_64': '64 bits CPU', | ||
'CPU_x86': 'x86 CPU', | ||
'CPU_x86_64': 'x86 CPU 64 bits', | ||
'CPU_ARM': 'arm CPU', | ||
'CPU_ARM64': 'arm CPU 64 bits', | ||
'CPU_Intel': 'Intel CPU', | ||
'CPU_Apple': 'Apple CPU', | ||
'With_Runtime': 'with %runtime% runtime', | ||
'MultiArchSupport': 'Support multi architectures', | ||
} | ||
}; | ||
} |