Explorar o código

Show translations debug messages only when DEBUG=true.

Thanks to xet7 !
Lauri Ojansivu %!s(int64=2) %!d(string=hai) anos
pai
achega
a30276e3d8
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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,