Skip to content

Commit

Permalink
feat: update to v1.1.0 #14
Browse files Browse the repository at this point in the history
  • Loading branch information
KageRyo committed Oct 28, 2024
1 parent d56381c commit 5fbc68d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ npx expo start

## 語言支援
WaterMirror 支援以下語言:
- 繁體中文(正體中文)
- 正體中文
- 簡體中文
- English
- 日本語
- 歡迎貢獻 :D

## 貢獻
Expand Down
6 changes: 5 additions & 1 deletion WaterMirror/i18n/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import AsyncStorage from '@react-native-async-storage/async-storage';
import 'intl-pluralrules';
import zhTW from './zh-TW.json';
import zhCN from './zh-CN.json';
import en from './en.json';
import ja from './ja.json';

const LANGUAGE_DETECTOR = {
type: 'languageDetector',
Expand Down Expand Up @@ -33,7 +35,9 @@ i18n
compatibilityJSON: 'v3',
resources: {
'zh-TW': { translation: zhTW },
'zh-CN': { translation: zhCN }
'zh-CN': { translation: zhCN },
'en': { translation: en },
'ja': { translation: ja }
},
fallbackLng: 'zh-TW',
interpolation: {
Expand Down
12 changes: 9 additions & 3 deletions WaterMirror/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"app": {
"name": "WaterMirror",
"subtitle": "智能化水质分析与评估系统",
"version": "版本:WaterMirror-{{platform}}-v1.0.8"
"version": "版本:WaterMirror-{{platform}}-v1.1.0"
},
"nav": {
"home": "首页",
Expand All @@ -14,7 +14,8 @@
"viewReport": "查阅报表",
"contactAuthor": "联系作者",
"tutorial": "使用教学",
"switchLanguage": "切换语言"
"switchLanguage": "切换语言",
"cancel": "取消"
},
"language": {
"select": "选择语言",
Expand All @@ -27,7 +28,12 @@
"warning": "WaterMirror 仍可能会出现错误,请谨慎使用。",
"disclaimer": "人工智能分析系统如WaterMirror在处理水质数据时仍可能会出现错误。分析结果可能受到水质数据品质、测量方法或环境因素的影响而产生偏差。使用前请谨慎评估,并应与专业意见或实验结果相结合,以确保决策的准确性。本软件提供的分析结果仅供参考,开发者不承担因依这些信息而导致的任何直接或间接损失。",
"iUnderstand": "我知道了",
"storagePermission": "需要权限以访问您的媒体库!"
"storagePermission": "需要权限以访问您的媒体库!",
"error": "错误",
"serverErrors": {
"categoryData": "无法从服务器获取类别数据。",
"percentileData": "无法从服务器获取百分位数。"
}
},
"calc": {
"title": "手动输入水质数据",
Expand Down
14 changes: 10 additions & 4 deletions WaterMirror/i18n/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"app": {
"name": "WaterMirror",
"subtitle": "智慧化水質分析與評估系統",
"version": "版本:WaterMirror-{{platform}}-v1.0.8"
"version": "版本:WaterMirror-{{platform}}-v1.1.0"
},
"nav": {
"home": "首頁",
Expand All @@ -14,7 +14,8 @@
"viewReport": "查閱報表",
"contactAuthor": "聯繫作者",
"tutorial": "使用教學",
"switchLanguage": "切換語言"
"switchLanguage": "切換語言",
"cancel": "取消"
},
"language": {
"select": "選擇語言",
Expand All @@ -27,7 +28,12 @@
"warning": "WaterMirror 仍可能會出現錯誤,請謹慎使用。",
"disclaimer": "人工智慧分析系統如WaterMirror在處理水質資料時仍可能會出現錯誤。分析結果可能受到水質資料品質、測量方法或環境因素的影響而產生偏差。使用前請謹慎評估,並應與專業意見或實驗結果相結合,以確保決策的準確性。本軟體提供的分析結果僅供參考,開發者不承擔因依賴這些資訊而導致的任何直接或間接損失。",
"iUnderstand": "我知道了",
"storagePermission": "需要權限以訪問您的媒體庫!"
"storagePermission": "需要權限以訪問您的媒體庫!",
"error": "Error",
"serverErrors": {
"categoryData": "Unable to fetch category data from server.",
"percentileData": "Unable to fetch percentile data from server."
}
},
"calc": {
"title": "手動輸入水質資料",
Expand Down Expand Up @@ -105,7 +111,7 @@
"suggestions": {
"DO": {
"error": "您的溶氧(DO)資料可能存在錯誤,或是狀況非常糟糕,若資料無誤建議尋求專業人士協助。",
"poor": "您的水中溶氧量(DO)可能過高或過低,有可能是溫度過高溶氧量過低,請嘗試為水增氧或增加植物行光合作用;或是太多水草導致溶氧量過高,請嘗試移除部分水草��"
"poor": "您的水中溶氧量(DO)可能過高或過低,有可能是溫度過高溶氧量過低,請嘗試為水增氧或增加植物行光合作用;或是太多水草導致溶氧量過高,請嘗試移除部分水草"
},
"BOD": {
"error": "您的生化需氧量(BOD)資料可能存在錯誤,或是狀況非常糟糕,若資料無誤建議尋求專業人士協助。",
Expand Down

0 comments on commit 5fbc68d

Please sign in to comment.