-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
250 additions
and
22 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"shared": { | ||
"usage": "Usage", | ||
"temperature": "Temperature", | ||
"name": "Name", | ||
"vendor": "Vendor", | ||
"coreCount": "Core Count", | ||
"defaultClockSpeed": "Default Clock Speed", | ||
"memory": "Memory", | ||
"memorySize": "Memory Size", | ||
"memorySizeShared": "Memory Size (Shared)", | ||
"memorySizeDedicated": "Memory Size (Dedicated)", | ||
"memoryType": "Memory Type", | ||
"totalMemory": "Total Memory", | ||
"memoryCount": "Memory Count", | ||
"memoryClockSpeed": "Memory Clock", | ||
"clock": "Clock" | ||
}, | ||
|
||
"pages": { | ||
"dashboard": { | ||
"name": "Dashboard" | ||
}, | ||
"usage": { | ||
"name": "Usage" | ||
}, | ||
"settings": { | ||
"name": "Settings", | ||
"general": { | ||
"name": "General", | ||
"language": "Language", | ||
"theme": "Theme", | ||
"hardwareType": "Hardware Type" | ||
}, | ||
"customTheme": { | ||
"name": "Custom Theme", | ||
"preview": "Preview", | ||
"lineColor": "line Color", | ||
"graphStyle": "Graph Style" | ||
}, | ||
"backgroundImage": { | ||
"name": "Background Image" | ||
} | ||
} | ||
} | ||
} |
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 @@ | ||
{ | ||
"shared": { | ||
"usage": "使用率", | ||
"temperature": "温度", | ||
"name": "名前", | ||
"vendor": "ベンダー", | ||
"coreCount": "コア数", | ||
"defaultClockSpeed": "標準クロック数", | ||
"memory": "メモリ", | ||
"memorySize": "メモリ容量", | ||
"memorySizeShared": "メモリ容量(共有)", | ||
"memorySizeDedicated": "メモリ容量(専用)", | ||
"memoryType": "メモリタイプ", | ||
"totalMemory": "合計メモリ", | ||
"memoryCount": "メモリ枚数", | ||
"memoryClockSpeed": "メモリクロック数", | ||
"clock": "クロック数" | ||
}, | ||
|
||
"pages": { | ||
"dashboard": { | ||
"name": "ダッシュボード" | ||
}, | ||
"usage": { | ||
"name": "ハードウェア使用率" | ||
}, | ||
"settings": { | ||
"name": "設定", | ||
"general": { | ||
"name": "一般", | ||
"language": "言語", | ||
"theme": "カラーモード", | ||
"hardwareType": "ハードウェア種別" | ||
}, | ||
"customTheme": { | ||
"name": "カスタマイズ", | ||
"preview": "プレビュー", | ||
"lineColor": "グラフの色", | ||
"graphStyle": "カスタムグラフ" | ||
}, | ||
"backgroundImage": { | ||
"name": "壁紙" | ||
} | ||
} | ||
} | ||
} |
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,28 @@ | ||
import en from "@/i18n/en.json"; | ||
import ja from "@/i18n/ja.json"; | ||
import i18n from "i18next"; | ||
import { initReactI18next } from "react-i18next"; | ||
|
||
const resources = { | ||
en: { | ||
translation: en, | ||
}, | ||
ja: { | ||
translation: ja, | ||
}, | ||
}; | ||
|
||
i18n | ||
.use(initReactI18next) // passes i18n down to react-i18next | ||
.init({ | ||
resources, | ||
lng: "en", // language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources | ||
// you can use the i18n.changeLanguage function to change the language manually: https://www.i18next.com/overview/api#changelanguage | ||
// if you're using a language detector, do not define the lng option | ||
|
||
interpolation: { | ||
escapeValue: false, // react already safes from xss | ||
}, | ||
}); | ||
|
||
export default i18n; |
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
Oops, something went wrong.