diff --git a/package.json b/package.json index 7a0d9316..2168023e 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ }, "dependencies": { "@corvu/tooltip": "^0.2.1", + "@solid-primitives/i18n": "^2.1.1", "@tauri-apps/api": "2.1.1", "dayjs": "1.11.13", "solid-icons": "1.1.0", @@ -28,9 +29,9 @@ "postcss": "8.4.49", "prettier": "3.4.2", "prettier-plugin-tailwindcss": "0.6.9", - "tailwindcss": "3.4.16", + "tailwindcss": "3.4.17", "typescript": "5.7.2", - "vite": "6.0.3", + "vite": "6.0.5", "vite-plugin-checker": "0.8.0", "vite-plugin-solid": "2.11.0" } diff --git a/project.inlang/.gitignore b/project.inlang/.gitignore new file mode 100644 index 00000000..5e465967 --- /dev/null +++ b/project.inlang/.gitignore @@ -0,0 +1 @@ +cache \ No newline at end of file diff --git a/project.inlang/clippy.babel b/project.inlang/clippy.babel new file mode 100644 index 00000000..323e8589 --- /dev/null +++ b/project.inlang/clippy.babel @@ -0,0 +1,4333 @@ + + + + + generic-json + clippy.babel + ../ + + + + + main + + + ABOUT + + + INFO + + + TODO_DELETED + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + + + META + + + DESCRIPTION + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + KEYWORDS + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + TITLE + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + + + SEED + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + SUCCESS + + + TODO_ADD + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + TODO_SEED + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + + + TITLE + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + + + CLIPBOARD + + + BY + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + META + + + DESCRIPTION + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + KEYWORDS + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + TITLE + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + + + OFFICIAL + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + OFFICIAL_CODING_DISCORD_WEBSITE + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + SEE_REPOSITORY + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + TITLE + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + WEBSITE_FOR_THE_CODING_DISCORD_SERVER + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + + + MAIN + + + BUTTON + + + BACK_TO_HOME + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + DISBOARD + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + DISCORD + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + LOADING + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + NOT_FOUND + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + RETRY + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + + + ENUM + + + DARK + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + DE + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + EN + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + LIGHT + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + SYSTEM + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + + + ERROR + + + PAGE_NOT_FOUND + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + UNAUTHORIZED + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + + + META + + + DESCRIPTION + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + KEYWORDS + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + TITLE + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + + + NAVIGATION + + + CHAT + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + NEWS + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + RULES + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + TEAM + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + TODO + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + + + SUCCESS + + + CONSOLE_CLEARED + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + LOGGED_OUT + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + + + TOOLTIP + + + CLEAR_CONSOLE + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + LOGOUT + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + TOGGLE_LANGUAGE + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + TOGGLE_THEME + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + + + + + SETTINGS + + + TAB + + + BACKUP + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + GENERAL + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + HISTORY + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + HOTKEYS + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + LIMITS + + + + + ar-SA + false + + + bn-IN + false + + + de-DE + false + + + en-US + false + + + es-ES + false + + + fr-FR + false + + + hi-IN + false + + + it-IT + false + + + ja-JP + false + + + ko-KR + false + + + nl-NL + false + + + pl-PL + false + + + pt-PT + false + + + ru-RU + false + + + th-TH + false + + + tr-TR + false + + + ur-PK + false + + + vi-VN + false + + + zh-CN + false + + + + + + + + + + + + false + + + ar-SA + + + bn-IN + + + de-DE + + + en-US + + + es-ES + + + fr-FR + + + hi-IN + + + it-IT + + + ja-JP + + + ko-KR + + + nl-NL + + + pl-PL + + + pt-PT + + + ru-RU + + + th-TH + + + tr-TR + + + ur-PK + + + vi-VN + + + zh-CN + + + + + main + + + ../src/lib/i18n/ar.json + ar-SA + + + ../src/lib/i18n/bn.json + bn-IN + + + ../src/lib/i18n/de.json + de-DE + + + ../src/lib/i18n/en.json + en-US + + + ../src/lib/i18n/es.json + es-ES + + + ../src/lib/i18n/fr.json + fr-FR + + + ../src/lib/i18n/hi.json + hi-IN + + + ../src/lib/i18n/it.json + it-IT + + + ../src/lib/i18n/ja.json + ja-JP + + + ../src/lib/i18n/ko.json + ko-KR + + + ../src/lib/i18n/nl.json + nl-NL + + + ../src/lib/i18n/pl.json + pl-PL + + + ../src/lib/i18n/pt.json + pt-PT + + + ../src/lib/i18n/ru.json + ru-RU + + + ../src/lib/i18n/th.json + th-TH + + + ../src/lib/i18n/tr.json + tr-TR + + + ../src/lib/i18n/ur.json + ur-PK + + + ../src/lib/i18n/vi.json + vi-VN + + + ../src/lib/i18n/zh.json + zh-CN + + + + + + true + alphabetically + + '%1' + + + + + + + en-US + + tab + namespaced-json + true + + diff --git a/project.inlang/project_id b/project.inlang/project_id new file mode 100644 index 00000000..5f1a73d7 --- /dev/null +++ b/project.inlang/project_id @@ -0,0 +1 @@ +6c836d0da57ed27f8a93f682a667fbbb3e4c12336073632bfe8c587e155653ab \ No newline at end of file diff --git a/project.inlang/settings.json b/project.inlang/settings.json new file mode 100644 index 00000000..2a8e918b --- /dev/null +++ b/project.inlang/settings.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://inlang.com/schema/project-settings", + "sourceLanguageTag": "en", + "languageTags": ["en", "de"], + "modules": [ + "https://cdn.jsdelivr.net/npm/@inlang/plugin-json@latest/dist/index.js", + "https://cdn.jsdelivr.net/npm/@inlang/plugin-t-function-matcher@latest/dist/index.js" + ], + "plugin.inlang.json": { + "pathPattern": "./src/lib/i18n/{languageTag}.json" + } +} diff --git a/src-tauri/common/src/types/enums.rs b/src-tauri/common/src/types/enums.rs index 265358bf..a7c35eb0 100644 --- a/src-tauri/common/src/types/enums.rs +++ b/src-tauri/common/src/types/enums.rs @@ -72,6 +72,24 @@ pub enum Language { Russian, #[iden = "ur"] Urdu, + #[iden = "ja"] + Japanese, + #[iden = "de"] + German, + #[iden = "ko"] + Korean, + #[iden = "vi"] + Vietnamese, + #[iden = "tr"] + Turkish, + #[iden = "it"] + Italian, + #[iden = "th"] + Thai, + #[iden = "pl"] + Polish, + #[iden = "nl"] + Dutch, } #[derive(Iden, EnumIter, PartialEq, Serialize, Deserialize, Debug, Clone)] diff --git a/src/about.tsx b/src/about.tsx index a7fe085c..42faecac 100644 --- a/src/about.tsx +++ b/src/about.tsx @@ -1,9 +1,10 @@ import { createSignal, onMount } from "solid-js"; import { render } from "solid-js/web"; import icon from "./assets/clippy.png"; +import { invokeCommand } from "./lib/tauri"; import "./styles.css"; import { InvokeCommand } from "./types/tauri-invoke"; -import { invokeCommand } from "./utils/tauri"; +import LanguageProvider from "./components/provider/language-provider"; const About = () => { const [version, setVersion] = createSignal("0.0.0"); @@ -35,4 +36,11 @@ const About = () => { ); }; -render(() => , document.getElementById("root") as HTMLElement); +render( + () => ( + + + + ), + document.getElementById("root") as HTMLElement +); diff --git a/src/components/pages/app/clipboard/base-clipboard.tsx b/src/components/pages/app/clipboard/base-clipboard.tsx index df7d3e8e..acbd37b1 100644 --- a/src/components/pages/app/clipboard/base-clipboard.tsx +++ b/src/components/pages/app/clipboard/base-clipboard.tsx @@ -3,11 +3,11 @@ import { IoTrashOutline } from "solid-icons/io"; import { TbSourceCode } from "solid-icons/tb"; import { VsStarFull } from "solid-icons/vs"; import { Component } from "solid-js"; +import { invokeCommand } from "../../../../lib/tauri"; import { ClipboardStore } from "../../../../store/clipboard-store"; import { ClipboardModel, ClipboardWithRelations } from "../../../../types"; import { ClipboardType } from "../../../../types/enums"; import { InvokeCommand } from "../../../../types/tauri-invoke"; -import { invokeCommand } from "../../../../utils/tauri"; import { FileClipboard } from "./file-clipboard"; import { ImageClipboard } from "./image-clipboard"; import { TextClipboard } from "./text-clipboard"; diff --git a/src/components/utils/clipboard/clipboard-header.tsx b/src/components/pages/app/clipboard/clipboard-header.tsx similarity index 85% rename from src/components/utils/clipboard/clipboard-header.tsx rename to src/components/pages/app/clipboard/clipboard-header.tsx index 9af35fd1..730b4f39 100644 --- a/src/components/utils/clipboard/clipboard-header.tsx +++ b/src/components/pages/app/clipboard/clipboard-header.tsx @@ -1,7 +1,7 @@ import { IconTypes } from "solid-icons"; import { Component, Show } from "solid-js"; -import { HotkeyStore } from "../../../store/hotkey-store"; -import { ClipboardWithRelations } from "../../../types"; +import { HotkeyStore } from "../../../../store/hotkey-store"; +import { ClipboardWithRelations } from "../../../../types"; interface ClipboardHeaderProps { data: ClipboardWithRelations; diff --git a/src/components/pages/app/clipboard/clipboards.tsx b/src/components/pages/app/clipboard/clipboards.tsx index d42d48aa..08d4c65b 100644 --- a/src/components/pages/app/clipboard/clipboards.tsx +++ b/src/components/pages/app/clipboard/clipboards.tsx @@ -4,12 +4,12 @@ import utc from "dayjs/plugin/utc"; import { FiArrowUp } from "solid-icons/fi"; import { Component, For, Show, createSignal, onMount } from "solid-js"; import clippy from "../../../../assets/clippy.png"; +import { listenEvent } from "../../../../lib/tauri"; import { AppStore } from "../../../../store/app-store"; import { ClipboardStore } from "../../../../store/clipboard-store"; import { HotkeyStore } from "../../../../store/hotkey-store"; import { HotkeyEvent } from "../../../../types/enums"; import { ListenEvent } from "../../../../types/tauri-listen"; -import { listenEvent } from "../../../../utils/tauri"; import { BaseClipboard } from "./base-clipboard"; dayjs.extend(utc); diff --git a/src/components/pages/app/clipboard/file-clipboard.tsx b/src/components/pages/app/clipboard/file-clipboard.tsx index f035c350..12c7f677 100644 --- a/src/components/pages/app/clipboard/file-clipboard.tsx +++ b/src/components/pages/app/clipboard/file-clipboard.tsx @@ -1,12 +1,12 @@ import dayjs from "dayjs"; import { VsFileBinary } from "solid-icons/vs"; import { Component } from "solid-js"; +import { invokeCommand } from "../../../../lib/tauri"; import { ClipboardFileModel, ClipboardWithRelations } from "../../../../types"; import { ClipboardType } from "../../../../types/enums"; import { InvokeCommand } from "../../../../types/tauri-invoke"; -import { formatBytes } from "../../../../utils/helpers"; -import { invokeCommand } from "../../../../utils/tauri"; -import { ClipboardHeader } from "../../../utils/clipboard/clipboard-header"; +import { formatBytes } from "../../../../utils"; +import { ClipboardHeader } from "./clipboard-header"; interface FileClipboardProps { data: ClipboardWithRelations; diff --git a/src/components/pages/app/clipboard/image-clipboard.tsx b/src/components/pages/app/clipboard/image-clipboard.tsx index 0d307725..775dd8e9 100644 --- a/src/components/pages/app/clipboard/image-clipboard.tsx +++ b/src/components/pages/app/clipboard/image-clipboard.tsx @@ -1,12 +1,12 @@ import dayjs from "dayjs"; import { BsImages } from "solid-icons/bs"; import { Component } from "solid-js"; +import { invokeCommand } from "../../../../lib/tauri"; import { ClipboardWithRelations } from "../../../../types"; import { ClipboardType } from "../../../../types/enums"; import { InvokeCommand } from "../../../../types/tauri-invoke"; -import { formatBytes } from "../../../../utils/helpers"; -import { invokeCommand } from "../../../../utils/tauri"; -import { ClipboardHeader } from "../../../utils/clipboard/clipboard-header"; +import { formatBytes } from "../../../../utils"; +import { ClipboardHeader } from "./clipboard-header"; interface ImageClipboardProps { data: ClipboardWithRelations; diff --git a/src/components/pages/app/clipboard/text-clipboard.tsx b/src/components/pages/app/clipboard/text-clipboard.tsx index 250a496c..add15101 100644 --- a/src/components/pages/app/clipboard/text-clipboard.tsx +++ b/src/components/pages/app/clipboard/text-clipboard.tsx @@ -3,13 +3,13 @@ import dayjs from "dayjs"; import { BsFiletypeHtml, BsJournalRichtext } from "solid-icons/bs"; import { FiFileText, FiLink } from "solid-icons/fi"; import { Component } from "solid-js"; +import { rgbCompatible } from "../../../../lib/colors"; +import { invokeCommand } from "../../../../lib/tauri"; import { SettingsStore } from "../../../../store/settings-store"; import { ClipboardWithRelations } from "../../../../types"; import { ClipboardTextType, ClipboardType } from "../../../../types/enums"; import { InvokeCommand } from "../../../../types/tauri-invoke"; -import { rgbCompatible } from "../../../../utils/colors"; -import { invokeCommand } from "../../../../utils/tauri"; -import { ClipboardHeader } from "../../../utils/clipboard/clipboard-header"; +import { ClipboardHeader } from "./clipboard-header"; interface TextClipboardProps { data: ClipboardWithRelations; diff --git a/src/components/pages/app/search-bar.tsx b/src/components/pages/app/search-bar.tsx index 040bad04..6247bc43 100644 --- a/src/components/pages/app/search-bar.tsx +++ b/src/components/pages/app/search-bar.tsx @@ -1,11 +1,11 @@ import { FaRegularImage } from "solid-icons/fa"; import { FiSearch } from "solid-icons/fi"; import { Component, createEffect, createSignal, onCleanup, onMount } from "solid-js"; +import { invokeCommand } from "../../../lib/tauri"; import { AppStore } from "../../../store/app-store"; import { ClipboardStore, initialWhere } from "../../../store/clipboard-store"; import { HotkeyStore } from "../../../store/hotkey-store"; import { InvokeCommand } from "../../../types/tauri-invoke"; -import { invokeCommand } from "../../../utils/tauri"; interface SearchBarProps {} diff --git a/src/components/pages/settings/settings-backup.tsx b/src/components/pages/settings/settings-backup.tsx index e40f7b86..29883441 100644 --- a/src/components/pages/settings/settings-backup.tsx +++ b/src/components/pages/settings/settings-backup.tsx @@ -4,10 +4,10 @@ import { RiDeviceSave3Fill } from "solid-icons/ri"; import { SiSqlite } from "solid-icons/si"; import { TbDatabaseStar } from "solid-icons/tb"; import { Component, createResource } from "solid-js"; +import { invokeCommand } from "../../../lib/tauri"; import { SettingsStore } from "../../../store/settings-store"; import { FolderLocation } from "../../../types/enums"; import { InvokeCommand } from "../../../types/tauri-invoke"; -import { invokeCommand } from "../../../utils/tauri"; import { TextBlock } from "../../elements/text-block"; import { Toggle } from "../../elements/toggle"; diff --git a/src/components/pages/settings/settings-general.tsx b/src/components/pages/settings/settings-general.tsx index adcbcc17..04322f83 100644 --- a/src/components/pages/settings/settings-general.tsx +++ b/src/components/pages/settings/settings-general.tsx @@ -3,20 +3,20 @@ import { FiMoon } from "solid-icons/fi"; import { HiOutlineWindow, HiSolidCog8Tooth } from "solid-icons/hi"; import { IoLanguageOutline } from "solid-icons/io"; import { RiDeviceKeyboardFill } from "solid-icons/ri"; +import { TbTooltip } from "solid-icons/tb"; import { VsRocket } from "solid-icons/vs"; import { Component, Show } from "solid-js"; +import { invokeCommand } from "../../../lib/tauri"; import { HotkeyStore } from "../../../store/hotkey-store"; import { SettingsStore } from "../../../store/settings-store"; import { ClippyPosition, HotkeyEvent, Language, WebWindow } from "../../../types/enums"; import { InvokeCommand } from "../../../types/tauri-invoke"; -import { invokeCommand } from "../../../utils/tauri"; import { Dropdown } from "../../elements/dropdown"; import { Input } from "../../elements/input"; import { TextBlock } from "../../elements/text-block"; import { Toggle } from "../../elements/toggle"; import { DarkMode } from "../../utils/dark-mode"; import { Shortcut } from "../../utils/shortcut"; -import { TbTooltip } from "solid-icons/tb"; interface SettingsGeneralProps {} @@ -94,8 +94,9 @@ export const SettingsGeneral: Component = ({}) => { ({ value: value, label: key }))} value={SettingsStore.settings()!.language} - onChange={(language) => { - SettingsStore.updateSettings({ ...SettingsStore.settings()!, language: language as Language }); + onChange={async (language) => { + await SettingsStore.updateSettings({ ...SettingsStore.settings()!, language: language as Language }); + }} /> diff --git a/src/components/pages/settings/settings-history.tsx b/src/components/pages/settings/settings-history.tsx index 6d82bfff..c9abc0e6 100644 --- a/src/components/pages/settings/settings-history.tsx +++ b/src/components/pages/settings/settings-history.tsx @@ -2,10 +2,10 @@ import { BsDeviceHdd } from "solid-icons/bs"; import { FiTrash2 } from "solid-icons/fi"; import { SiSqlite } from "solid-icons/si"; import { Component, createResource } from "solid-js"; +import { invokeCommand } from "../../../lib/tauri"; import { ClipboardType } from "../../../types/enums"; import { InvokeCommand } from "../../../types/tauri-invoke"; -import { formatBytes } from "../../../utils/helpers"; -import { invokeCommand } from "../../../utils/tauri"; +import { formatBytes } from "../../../utils"; import { TextBlock } from "../../elements/text-block"; const CLIPBOARD_TYPES: { type: ClipboardType | null; label: string }[] = [ diff --git a/src/components/pages/settings/settings-limits.tsx b/src/components/pages/settings/settings-limits.tsx index dbb2791e..19ba58fb 100644 --- a/src/components/pages/settings/settings-limits.tsx +++ b/src/components/pages/settings/settings-limits.tsx @@ -4,7 +4,7 @@ import { HiSolidCog8Tooth } from "solid-icons/hi"; import { VsFileBinary } from "solid-icons/vs"; import { Component, Show } from "solid-js"; import { SettingsStore } from "../../../store/settings-store"; -import { formatBytes } from "../../../utils/helpers"; +import { formatBytes } from "../../../utils"; import { Input } from "../../elements/input"; import { TextBlock } from "../../elements/text-block"; diff --git a/src/components/navigation/settings-tabs.tsx b/src/components/pages/settings/settings-tabs.tsx similarity index 73% rename from src/components/navigation/settings-tabs.tsx rename to src/components/pages/settings/settings-tabs.tsx index 32d23213..58cf732a 100644 --- a/src/components/navigation/settings-tabs.tsx +++ b/src/components/pages/settings/settings-tabs.tsx @@ -1,15 +1,16 @@ import { Component, For } from "solid-js"; -import { SettingsStore } from "../../store/settings-store"; +import { SettingsStore } from "../../../store/settings-store"; +import { useLanguage } from "../../provider/language-provider"; interface TabsProps {} export const Tabs: Component = ({}) => { - const { tabs, setCurrentTab } = SettingsStore; + const { t } = useLanguage(); return (