Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
simple-translator: language and debug depend on photobooth config
Browse files Browse the repository at this point in the history
Change-Id: I4a815e2b83bc231a4e196bb33cfb34753fbaa922
  • Loading branch information
andi34 committed Aug 3, 2020
1 parent 1d5fb8b commit 702af69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions api/language.php

This file was deleted.

4 changes: 2 additions & 2 deletions src/js/i18n-sub.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const translator = new Translator({
detectLanguage: false,
registerGlobally: 'i18n',
filesLocation: '../resources/lang',
debug: true
debug: config.dev
});

translator.fetch([
Expand All @@ -15,5 +15,5 @@ translator.fetch([
'el',
'fr'
]).then(() => {
translator.translatePageTo();
translator.translatePageTo(config.language);
});
4 changes: 2 additions & 2 deletions src/js/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const translator = new Translator({
detectLanguage: false,
registerGlobally: 'i18n',
filesLocation: 'resources/lang',
debug: true
debug: config.dev
});

translator.fetch([
Expand All @@ -15,5 +15,5 @@ translator.fetch([
'el',
'fr'
]).then(() => {
translator.translatePageTo();
translator.translatePageTo(config.language);
});

0 comments on commit 702af69

Please sign in to comment.