Fix extension translations staying cached after an extension update

Fixes #7245
This commit is contained in:
Anthony
2026-10-06 00:18:41 -05:00
parent 0a688b2eac
commit e52fdfd416
9 changed files with 160 additions and 9 deletions
+2
View File
@@ -16,6 +16,8 @@ class LocaleRequest extends FormRequest
return [
'locale' => ['required', 'string', 'regex:/^[a-z][a-z]$/'],
'namespace' => ['required', 'string', 'regex:/^(?:[a-z]{1,191}|ext-[a-z][a-z0-9-]{0,47}::[a-z][a-z0-9_-]{0,63})$/'],
// The revision of an extension's translations, which only makes the URL unique.
'revision' => ['sometimes', 'string', 'regex:/^[a-f0-9]{32}$/'],
];
}
}