fix route, so we don't overwrite original files
This commit is contained in:
@ -22,7 +22,7 @@ const AdminTranslations = () => {
|
||||
}, [locale]);
|
||||
|
||||
const handleSave = () => {
|
||||
axiosInstance.post(`/api/translations/${locale}`, translations)
|
||||
axiosInstance.post(`/api/translations/${locale}/modified`, translations)
|
||||
.then(res => {
|
||||
if (res.data.status === 'Updated') {
|
||||
toast.success('Translations updated!');
|
||||
|
Reference in New Issue
Block a user