diff --git a/.gitignore b/.gitignore index faa9af416..0f1fd9fa1 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ yarn-error.log /.php-cs-fixer.cache /storage/*.bucket /*.tar.gz +/resources/lang/php_*.json diff --git a/package-lock.json b/package-lock.json index a7105cfe8..a48f09b34 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,7 @@ "@vitejs/plugin-vue": "^5.1.2", "bootstrap": "^5.3.3", "clipboard": "^2.0.11", + "laravel-vue-i18n": "^2.7.7", "moment": "^2.30.1", "vue": "^3.4.38", "vue-markdown-render": "^2.2.1" @@ -646,6 +647,16 @@ "vite": "^5.0.0" } }, + "node_modules/laravel-vue-i18n": { + "version": "2.7.7", + "resolved": "https://registry.npmjs.org/laravel-vue-i18n/-/laravel-vue-i18n-2.7.7.tgz", + "integrity": "sha512-rvjRTUY0eYEduEYgyxqNno/5A0ryUQfT+70qYvubMPUxWhmucitUfjDQAQUjvD7WNaUbG5iroAUt3UqBBc5qDw==", + "license": "MIT", + "dependencies": { + "php-parser": "3.1.3", + "vue": "^3.2.45" + } + }, "node_modules/linkify-it": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-4.0.1.tgz", @@ -734,6 +745,12 @@ "node": ">=0.10.0" } }, + "node_modules/php-parser": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/php-parser/-/php-parser-3.1.3.tgz", + "integrity": "sha512-hPvBmnRYPqWEtMfIFOlyjQv1q75UUtxt4U+YscKIQViGmEE2Xa4BuS1B1/cZdjy7MVcwtnr0WkEsr915LgRKOw==", + "license": "BSD-3-Clause" + }, "node_modules/picocolors": { "version": "1.0.0", "dev": true, diff --git a/package.json b/package.json index ccc8f3329..ae24d9ad5 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "@vitejs/plugin-vue": "^5.1.2", "bootstrap": "^5.3.3", "clipboard": "^2.0.11", + "laravel-vue-i18n": "^2.7.7", "moment": "^2.30.1", "vue": "^3.4.38", "vue-markdown-render": "^2.2.1" diff --git a/resources/js/app.js b/resources/js/app.js index a0a7636b1..b7f08caa0 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -16,7 +16,7 @@ window.submitDeletionForm = function (event) { const form = event.target.closest('form'); if (form) { - if (confirm('Are you sure you want to delete this?')) { + if (confirm(trans('phrase.are-you-sure-delete'))) { form.submit(); } } else { diff --git a/resources/js/components/active-games/active-game.vue b/resources/js/components/active-games/active-game.vue index a89c66509..85b4b11ef 100644 --- a/resources/js/components/active-games/active-game.vue +++ b/resources/js/components/active-games/active-game.vue @@ -18,7 +18,7 @@ const userCount = computed(() => props.users.length);