Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一部の表記修正と日本語対応 #674

Merged
merged 5 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions vrc-get-gui/app/projects/manage/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ function Unity2022MigrationConfirmMigrationDialog(
</Typography>
</DialogBody>
<DialogFooter>
<Button onClick={cancel} className="mr-1">{t("cance;")}</Button>
<Button onClick={cancel} className="mr-1">{t("cancel")}</Button>
<Button onClick={() => doMigrate(false)} color={"red"} className="mr-1">{t("migrate a copy")}</Button>
<Button onClick={() => doMigrate(true)} color={"red"}>{t("migrate in-place")}</Button>
</DialogFooter>
Expand Down Expand Up @@ -711,7 +711,7 @@ function ProjectChangesDialog(

return (
<Dialog open handler={nop} className={"whitespace-normal"}>
<DialogHeader>Apply Changes</DialogHeader>
<DialogHeader>{t("apply changes")}</DialogHeader>
<DialogBody>
<Typography className={"text-gray-900"}>
{t("you're applying the following changes to the project")}
Expand Down Expand Up @@ -1337,7 +1337,7 @@ function ProjectViewHeader({className, projectName, projectPath}: {

<Menu>
<ButtonGroup>
<Button onClick={() => openUnity(projectPath)} className={"pl-4 pr-3"}>Open Unity</Button>
<Button onClick={() => openUnity(projectPath)} className={"pl-4 pr-3"}>{t("open unity")}</Button>
<MenuHandler className={"pl-2 pr-2"}>
<Button>
<ChevronDownIcon className={"w-4 h-4"}/>
Expand Down
4 changes: 2 additions & 2 deletions vrc-get-gui/app/projects/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function Page() {
setLoadingOther(true);
try {
await environmentRemoveProject(project.list_version, project.index, directory);
toastSuccess("Project removed successfully");
toastSuccess(t("project removed successfully"));
} finally {
setLoadingOther(false);
}
Expand Down Expand Up @@ -605,7 +605,7 @@ function CreateProject(
try {
setState('creating');
await environmentCreateProject(projectLocation, projectName, chosenTemplate!);
toastSuccess("Project created successfully");
toastSuccess(t("project created successfully"));
close?.();
refetch?.();
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion vrc-get-gui/app/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function Page() {
<h2>Licenses</h2>
<Typography className={"whitespace-normal"}>
<Trans
i18nKey={"clock <l>here</l> to view licenses of the projects used in vrc-get-gui"}
i18nKey={"click <l>here</l> to view licenses of the projects used in vrc-get-gui"}
components={{l: <Link href={"/settings/licenses"} className={"underline"}/>}}
/>
</Typography>
Expand Down
3 changes: 3 additions & 0 deletions vrc-get-gui/lib/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import i18next from "i18next";
import {initReactI18next} from "react-i18next";
import enJson from "@/locales/en.json5";
import jaJson from "@/locales/ja.json5";

i18next
.use(initReactI18next)
.init({
resources: {
en: enJson,
ja: jaJson,
},
lng: "en",
fallbackLng: "en",
Expand All @@ -21,4 +23,5 @@ i18next
export default i18next;
export const languages = [
"en",
"ja",
];
2 changes: 1 addition & 1 deletion vrc-get-gui/lib/open-unity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function openUnity(projectPath: string) {
toastError(i18next.t("we couldn't detect suitable unity installations"));
break;
case "NoMatchingUnityFound":
toastError(i18next.t("no matching unity version found. please install or add add a unity version in the vrc-get-gui settings"));
toastError(i18next.t("no matching unity version found. please install or add a unity version in the vrc-get-gui settings"));
break;
case "Success":
toastNormal(i18next.t("opening unity..."));
Expand Down
12 changes: 8 additions & 4 deletions vrc-get-gui/locales/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"cancel": "Cancel",
"remove from the list": "Remove from the list",
"remove the directory": "Remove the directory",
"project removed successfully": "Project removed successfully",
"vpm migration": "VPM migration",
"project migration is experimental in vrc-get.": "Project migration is experimental in vrc-get.",
"please make backup of your project before migration.": "Please make backup of your project before migration.",
Expand All @@ -53,6 +54,7 @@
"the new project will be at <code>{{path}}</code>": "The new project will be at <code>{{path}}</code>",
"creating the project...": "Creating the project...",
"create": "Create",
"project created successfully": "Project created successfully",
"package": "Package",
"installed": "Installed",
"latest": "Latest",
Expand All @@ -61,6 +63,7 @@
"installed {{name}} version {{version}}": "Installed {{name}} version {{version}}",
"removed {{name}}": "Removed {{name}}",
"upgraded all packages": "Upgraded all packages",
"migrate project": "Migrate Project",
"failed to migrate project: unity 2022 not found": "Failed to migrate project: Unity 2022 not found",
"failed to finalize the migration: unity 2022 not found": "Failed to finalize the migration: Unity 2022 not found",
"the project is migrated to unity 2022": "The project is migrated to Unity 2022",
Expand All @@ -84,6 +87,7 @@
"launching unity 2022 in background for finalizing the migration...": "Launching Unity 2022 in background for finalizing the migration...",
"you're applying the following changes to the project": "You're applying the following changes to the project",
"see changelog": "See changelog",
"apply changes": "Apply Changes",
"install {{name}} version {{version}}": "Install {{name}} version {{version}}",
"remove {{name}} since you requested": "Remove {{name}} since you requested",
"remove {{name}} since it's a legacy package": "Remove {{name}} since it's a legacy package",
Expand All @@ -108,16 +112,16 @@
"added the repository successfully": "Added the repository successfully",
"community repositories": "Community Repositories",
"add repository": "Add Repository",
"url": "url",
"url": "URL",
"enter information about the repository": "Enter information about the repository",
"downloading the repository": "Downloading the repository",
"downloading the repository": "Downloading the repository...",
"the repository is already added.": "The repository is already added.",
"ok": "OK",
"name: {{name}}": "Name: {{name}}",
"url: {{url}}": "URL: {{url}}",
"packages": "Packages",
"error loading settings": "Error loading settings",
"clock <l>here</l> to view licenses of the projects used in vrc-get-gui": "Click <l>here</l> to view licenses of the projects used in vrc-get-gui",
"click <l>here</l> to view licenses of the projects used in vrc-get-gui": "Click <l>here</l> to view licenses of the projects used in vrc-get-gui",
"selected file is invalid as a unity hub": "Selected file is invalid as a Unity Hub",
"updated unity hub successfully!": "Updated Unity Hub successfully!",
"selected file is invalid as a unity": "Selected file is invalid as a Unity",
Expand All @@ -142,7 +146,7 @@
"manual": "Manual",
"{{name}} is not supported yet": "{{name}} is not supported yet",
"we couldn't detect suitable unity installations": "We couldn't detect suitable Unity installations",
"no matching unity version found. please install or add add a unity version in the vrc-get-gui settings": "No matching Unity version found. Please install or add add a Unity version in the vrc-get-gui settings",
"no matching unity version found. please install or add a unity version in the vrc-get-gui settings": "No matching Unity version found. Please install or add a Unity version in the vrc-get-gui settings",
"opening unity...": "Opening Unity...",
},
}
152 changes: 152 additions & 0 deletions vrc-get-gui/locales/ja.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
{
"translation": {
"langName": "日本語",
"projects": "プロジェクト",
"settings": "設定",
"repositories": "VPMリポジトリ",
anatawa12 marked this conversation as resolved.
Show resolved Hide resolved
"logs": "ログ",
"search": "検索",
"search...": "入力して検索...",
"create new project": "プロジェクトを作成",
"add existing project": "既存のプロジェクトを追加",
"name": "プロジェクト名",
Sayamame-beans marked this conversation as resolved.
Show resolved Hide resolved
"type": "種類",
"unity": "Unity",
"last modified": "最終更新日",
"unknown": "不明",
"worlds": "ワールド",
"avatars": "アバター",
"loading...": "読込中...",
"error loading projects: {{msg}}": "プロジェクトリストの読込中にエラーが発生しました: {{msg}}",
"project migrated successfully": "プロジェクト移行に成功しました。",
"project folder does not exist": "プロジェクトフォルダが存在しません。",
"migrate": "移行",
"manage": "管理",
"remove project": "プロジェクトを削除",
"you're about to remove the project <strong>{{name}}</strong>": "プロジェクト <strong>{{name}}</strong> を削除します。<br>ファイルを削除した場合は復元出来ません。よろしいですか?",
"cancel": "キャンセル",
"remove from the list": "リストから削除する",
"remove the directory": "プロジェクトのファイルも削除する",
"project removed successfully": "プロジェクトを削除しました。",
"vpm migration": "レガシープロジェクトを移行",
"project migration is experimental in vrc-get.": "プロジェクト移行はvrc-getにおける実験的な機能です。",
"please make backup of your project before migration.": "移行前にバックアップを作成することを忘れないでください。",
"migrate a copy": "複製して移行",
"migrate in-place": "複製しないで移行",
"copying project for migration...": "プロジェクトを複製中...",
"migrating project...": "プロジェクトを移行中...",
"legacy": "レガシー",
"open unity": "Unityを開く",
"backup": "バックアップ",
"make backup": "バックアップを行う",
"open project folder": "プロジェクトフォルダを開く",
"invalid folder is selected": "不正なフォルダが選択されました。",
"added project successfully": "プロジェクトを追加しました。",
"the selected directory is invalid": "選択されたディレクトリは不正です。",
"ready to create a project": "プロジェクトが作成可能です!",
"invalid project name": "プロジェクト名が不正です。",
"using such a symbol may cause problems": "そのような記号を使用すると問題が発生する可能性があります。",
"using multibyte characters may cause problems": "マルチバイト文字を使用すると問題が発生する可能性があります。",
"the directory already exists": "そのディレクトリは既に存在しています",
"checking the directory name...": "ディレクトリの名前を確認中...",
"template:": "テンプレート:",
"select directory": "ディレクトリを選択",
"the new project will be at <code>{{path}}</code>": "新しいプロジェクトは <code>{{path}}</code> に保存されます。",
"creating the project...": "プロジェクトを作成中...",
"create": "作成する",
"project created successfully": "プロジェクトを作成しました。",
"package": "パッケージ",
"installed": "インストール済み",
"latest": "最新のバージョン",
"source": "ソース",
"no upgradable packages": "更新可能なパッケージはありません。",
"installed {{name}} version {{version}}": "{{name}} バージョン {{version}} をインストールしました。",
"removed {{name}}": "{{name}} をアンインストールしました。",
"upgraded all packages": "すべてのパッケージを更新しました。",
"migrate project": "プロジェクトを移行",
"failed to migrate project: unity 2022 not found": "プロジェクト移行に失敗しました: Unity 2022がありません",
"failed to finalize the migration: unity 2022 not found": "プロジェクト移行の完了処理を行えませんでした: Unity 2022がありません",
"the project is migrated to unity 2022": "プロジェクトをUnity 2022に移行しました。",
"located at: <code>{{path}}</code>": "保存場所: <code>{{path}}</code>",
"unity version: ": "Unityバージョン: ",
"manage packages": "パッケージ管理",
"upgrade all": "すべて更新",
"reinstall all": "すべて入れ直す",
"select repositories": "VPMリポジトリを選択",
"official": "Official",
"curated": "Curated",
"unity 2019 to 2022 migration suggestion": "このプロジェクトは、VRChat SDKによるサポートが終了したUnity 2019を使用しています。VRChatはUnity 2022に移行することを推奨しています。",
"unity migration": "Unityバージョンを移行",
"we could not find unity exact recommended version of unity 2022": "推奨バージョンに一致するUnity 2022が見つかりませんでした。",
"recommended: {{version}}": "推奨バージョン: {{version}}",
"found: {{version}}": "見つかったバージョン: {{version}}",
"this may cause problems with VRChat SDK": "これにより、VRChat SDKで問題が発生する可能性があります。",
"do you want to continue?": "移行を続けますか?",
"continue": "続ける",
"please do not close the window": "ウィンドウを閉じないでください。",
"launching unity 2022 in background for finalizing the migration...": "Unity 2022をバックグラウンドで起動し、移行の完了処理を行っています...",
"you're applying the following changes to the project": "このプロジェクトに以下の変更を加えようとしています。",
"see changelog": "更新履歴を見る",
"apply changes": "変更を適用",
"install {{name}} version {{version}}": "{{name}} バージョン {{version}} をインストール",
"remove {{name}} since you requested": "{{name}} をアンインストール",
"remove {{name}} since it's a legacy package": "レガシーパッケージとして {{name}} をアンインストール",
"remove {{name}} since it's not used": "使用されていない {{name}} をアンインストール",
"there are version conflicts_one": "パッケージのバージョン指定が競合しています。",
"there are version conflicts_other": "パッケージのバージョン指定が競合しています。",
Sayamame-beans marked this conversation as resolved.
Show resolved Hide resolved
"{{pkg}} conflicts with {{other}}": "{{pkg}} は {{other}} と競合しています。",
"there are unity version conflicts_one": "Unityバージョンの指定が競合しています。",
"there are unity version conflicts_other": "Unityバージョンの指定が競合しています。",
Sayamame-beans marked this conversation as resolved.
Show resolved Hide resolved
"{{pkg}} does not support your unity version": "{{pkg}} は使用中のUnityバージョンをサポートしていません。",
// TODO: plurals
Sayamame-beans marked this conversation as resolved.
Show resolved Hide resolved
"the following legacy files and folders will be removed": "以下のファイルとフォルダはレガシーとして削除されます。",
"apply": "適用",
"user local": "User Local",
"incompatibles": "互換性なし",
"not selected": "未選択",
"none": "なし",
"multiple sources": "複数ソース",
"(yanked)": "(取り下げ済み)",
"invalid url": "不正なURLです。",
"failed to download the repository: {{message}}": "VPMリポジトリ情報の取得に失敗しました: {{message}}",
"added the repository successfully": "リポジトリを追加しました。",
"community repositories": "コミュニティリポジトリ",
"add repository": "リポジトリを追加",
"url": "URL",
"enter information about the repository": "リポジトリ情報を入力",
"downloading the repository": "リポジトリ情報をダウンロード中...",
"the repository is already added.": "このリポジトリは既に登録されています。",
"ok": "OK",
"name: {{name}}": "リポジトリ名: {{name}}",
"url: {{url}}": "URL: {{url}}",
"packages": "パッケージ",
"error loading settings": "設定の読み込みに失敗しました。",
"click <l>here</l> to view licenses of the projects used in vrc-get-gui": "vrc-get-guiで利用しているプロジェクトのライセンスを表示するには、<l>ここをクリック</l>",
"selected file is invalid as a unity hub": "選択されたファイルはUnity Hubではありません。",
"updated unity hub successfully!": "Unity Hubの情報を更新しました。",
"selected file is invalid as a unity": "選択されたファイルはUnityではありません。",
"selected unity is already added": "選択されたUnityは既に登録されています。",
"added unity successfully!": "選択されたUnityを登録しました。",
"selected directory is invalid as the project default path": "不正なパスです。",
"updated the project default path successfully!": "プロジェクト作成時の保存先を更新しました!",
"selected directory is invalid as a project backup path": "不正なパスです。",
"updated the project backup path successfully!": "バックアップの保存先を更新しました。",
"unity hub": "Unity Hub",
"select": "選択",
"unity installations": "インストール済みのUnity",
"add unity": "Unityを追加",
"default project path": "プロジェクト作成時の保存先",
"the default project path is the directory where new projects are created in.": "",
anatawa12 marked this conversation as resolved.
Show resolved Hide resolved
"backup path": "バックアップの保存先",
"the backup path is the directory where vrc-get-gui will create backup zips of the projects.": "vrc-get-guiで作成した、プロジェクトのバックアップ(zip)の保存先",
Sayamame-beans marked this conversation as resolved.
Show resolved Hide resolved
"description for show prerelease packages": "プレリリース版のパッケージは、正式リリース前の動作確認等に用いられるパッケージです。<br>この設定を有効にすると、パッケージのバージョン一覧にプレリリース版のパッケージも表示されるようになります。<br>また、パッケージの依存関係を解決する際に、プレリリース版のパッケージも含まれるようになります。",
"show prerelease packages": "プレリリース版のパッケージを表示する",
"unity version": "Unityバージョン",
"unity path": "場所",
"manual": "手動登録",
"{{name}} is not supported yet": "{{name}}はまだ実装されていません。",
"we couldn't detect suitable unity installations": "プロジェクトのUnityバージョン指定が不正です。",
"no matching unity version found. please install or add a unity version in the vrc-get-gui settings": "対応したバージョンのUnityを見つけることが出来ませんでした。該当するUnityをインストールするか、vrc-get-guiに登録してください。",
"opening unity...": "Unityを起動中...",
},
}
Loading