Skip to content

Commit

Permalink
removed localhost dependency on translation fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanjeev Lakhwani committed Dec 12, 2022
1 parent c3ca5fd commit 86829fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/public/locales/en/translation.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import def_trans_en from './default_translation_en.json';
import axios from 'axios';

const trans_en = await axios
.get('http://localhost:8090/public/locales/en/translation_en.json')
.then((response) => response.data);
const trans_en = await axios.get('/public/locales/en/translation_en.json').then((response) => response.data);

const translation = {
// Default Translation
Expand Down
4 changes: 1 addition & 3 deletions src/public/locales/fr/translation.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import def_fr_trans from './default_translation_fr.json';
import axios from 'axios';

const fr_trans = await axios
.get('http://localhost:8090/public/locales/fr/translation_fr.json')
.then((response) => response.data);
const fr_trans = await axios.get('/public/locales/fr/translation_fr.json').then((response) => response.data);

const translation = {
// Default Translation
Expand Down

0 comments on commit 86829fa

Please sign in to comment.