Prechádzať zdrojové kódy

Show translations debug messages only when DEBUG=true.

Thanks to xet7 !
Lauri Ojansivu 2 rokov pred
rodič
commit
a30276e3d8
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 3 1
      imports/i18n/tap.js

+ 3 - 1
imports/i18n/tap.js

@@ -16,7 +16,9 @@ export const TAPi18n = {
     await this.i18n.init({
       fallbackLng: DEFAULT_LANGUAGE,
       cleanCode: true,
-      debug: Meteor.isDevelopment,
+      // Show translations debug messages only when DEBUG=true
+      // OLD: debug: Meteor.isDevelopment,
+      debug: process.env.DEBUG,
       supportedLngs: Object.values(languages).map(({ tag }) => tag),
       ns: DEFAULT_NAMESPACE,
       defaultNs: DEFAULT_NAMESPACE,