Explorar el Código

Show translations debug messages only when DEBUG=true.

Thanks to xet7 !
Lauri Ojansivu hace 2 años
padre
commit
a30276e3d8
Se han modificado 1 ficheros con 3 adiciones y 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,