File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1212return [
1313 'routes ' => [
1414 [
15- 'pattern ' => '/localizer/translations ' ,
15+ 'pattern ' => '/localizer ' ,
1616 'method ' => 'get ' ,
1717 'action ' => function () use ($ path ) {
1818 try {
3333 },
3434 ],
3535 [
36- 'pattern ' => '/localizer/translations ' ,
36+ 'pattern ' => '/localizer ' ,
3737 'method ' => 'post ' ,
3838 'action ' => function () use ($ path ) {
3939 $ translations = kirby ()->request ()->body ()->data ();
Original file line number Diff line number Diff line change @@ -117,12 +117,12 @@ export default {
117117 this .$store .dispatch (LANGUAGES_UPDATE , data);
118118 },
119119 async loadTranslations () {
120- const translations = await this .$api .get (" /localizer/translations " );
120+ const translations = await this .$api .get (" /localizer" );
121121 this .$store .dispatch (TRANSLATIONS_UPDATE , translations);
122122 this .$store .dispatch (PERSIST );
123123 },
124124 async save () {
125- await this .$api .post (" /localizer/translations " , this .translations );
125+ await this .$api .post (" /localizer" , this .translations );
126126 this .$store .dispatch (TRANSLATIONS_UPDATE , this .translations );
127127 this .$store .dispatch (PERSIST );
128128 this .$store .dispatch (DIRTY_CHECK );
You can’t perform that action at this time.
0 commit comments