Add translation CRUD routes and controller

POST/DELETE for translations gated by can:update,document middleware.
Locale validated against SUPPORTED_LOCALES. Default-locale deletion
returns 422; duplicate-locale add returns 422. Flash messages added
to en/ja lang files (other locales updated in Task 9).
This commit is contained in:
Yutaka Kurosaki
2026-05-10 12:28:25 +09:00
parent 6d71f5fecf
commit 187349521d
5 changed files with 161 additions and 0 deletions
+2
View File
@@ -39,6 +39,8 @@
'content_label' => '本文',
'content_placeholder' => 'Markdownで記述してください...',
'saving' => '保存中...',
'translation_added' => '翻訳を追加しました。',
'translation_deleted' => '翻訳を削除しました。',
],
// Quick Switcher