mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Fix log output
Before: ``` MMM-OlympicGames - Load translationfalse: translations/de.json translator.js:107 MMM-OlympicGames - Load translation fallback: translations/en.json ``` After: ``` MMM-OlympicGames - Load translation: translations/de.json translator.js:107 MMM-OlympicGames - Load translation fallback: translations/en.json ```
This commit is contained in:
parent
880e2160a3
commit
e234d2379b
@ -104,7 +104,7 @@ const Translator = (function () {
|
||||
* @param {Function} callback Function called when done.
|
||||
*/
|
||||
load(module, file, isFallback, callback) {
|
||||
Log.log(`${module.name} - Load translation${isFallback && " fallback"}: ${file}`);
|
||||
Log.log(`${module.name} - Load translation${isFallback ? " fallback" : ""}: ${file}`);
|
||||
|
||||
if (this.translationsFallback[module.name]) {
|
||||
callback();
|
||||
|
Loading…
x
Reference in New Issue
Block a user