多语言

This commit is contained in:
czz
2025-07-30 16:48:48 +08:00
parent 92b6896176
commit 300e3b31f6
96 changed files with 3741 additions and 2710 deletions

View File

@@ -54,7 +54,7 @@ class _SettingPageState extends State<SettingPage> {
children: [
// 中间居中的标题
Text(
'设置',
'设置'.tr,
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white,
@@ -117,7 +117,7 @@ class _SettingPageState extends State<SettingPage> {
Row(
mainAxisSize: MainAxisSize.max,
children: [
Text('修改密码',
Text('修改密码'.tr,
style: TextStyle(
fontSize: 30.rpx,
color: Colors.white,
@@ -164,7 +164,7 @@ class _SettingPageState extends State<SettingPage> {
padding: EdgeInsetsDirectional.fromSTEB(
0.rpx, 0.rpx, 0.rpx, 0.rpx),
onTap: () {
print('点击了容器');
print('点击了容器'.tr);
Get.toNamed("/aboutUsPage");
},
child: Container(
@@ -180,7 +180,7 @@ class _SettingPageState extends State<SettingPage> {
mainAxisSize: MainAxisSize.max,
children: [
Text(
'当前版本',
'当前版本'.tr,
style: TextStyle(
fontFamily: 'Inter',
color: Colors.white,
@@ -235,7 +235,7 @@ class _SettingPageState extends State<SettingPage> {
mainAxisSize: MainAxisSize.max,
children: [
Text(
'切换语言',
'切换语言'.tr,
style: TextStyle(
fontFamily: 'Inter',
color: Colors.white,
@@ -256,7 +256,7 @@ class _SettingPageState extends State<SettingPage> {
.selectLanguage
.value
?.language_name ??
'简体中文',
'简体中文'.tr,
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFD9E3EB),
@@ -304,7 +304,7 @@ class _SettingPageState extends State<SettingPage> {
mainAxisSize: MainAxisSize.max,
children: [
Text(
'设置页.关于我们'.tr,
'关于我们'.tr,
style: TextStyle(
fontFamily: 'Inter',
color: Colors.white,
@@ -352,7 +352,7 @@ class _SettingPageState extends State<SettingPage> {
mainAxisSize: MainAxisSize.max,
children: [
Text(
'设置页.用户协议'.tr,
'用户协议'.tr,
style: TextStyle(
fontFamily: 'Inter',
color: Colors.white,
@@ -400,7 +400,7 @@ class _SettingPageState extends State<SettingPage> {
mainAxisSize: MainAxisSize.max,
children: [
Text(
'设置页.隐私协议'.tr,
'隐私协议'.tr,
style: TextStyle(
fontFamily: 'Inter',
color: Colors.white,
@@ -471,7 +471,7 @@ class _SettingPageState extends State<SettingPage> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'设置页.退出登录'.tr,
'退出登录'.tr,
style: TextStyle(
color: Color(0xFF003058),
fontFamily: 'Inter',
@@ -516,7 +516,7 @@ class _SettingPageState extends State<SettingPage> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'设置页.注销账号'.tr,
'注销账号'.tr,
style: TextStyle(
color: themeController.currentColor.sc9,
fontFamily: 'Inter',
@@ -571,7 +571,7 @@ class _SettingPageState extends State<SettingPage> {
AppConstants().ent_type == 1
? 'Copyright © 202-2025 嘉兴太和信息技术有限责任公司 版权所有'
.tr
: "Copyright © 202-2025 杭州欢睡科技有限公司 版权所有",
: "Copyright © 202-2025 杭州欢睡科技有限公司 版权所有".tr,
style: TextStyle(
color: themeController.currentColor.sc4,
fontFamily: 'Inter',