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