From 665f9998dc89ffd353f658197bf21e90c1ef47b4 Mon Sep 17 00:00:00 2001 From: Maksim Eltyshev Date: Sun, 1 Jun 2025 21:44:14 +0200 Subject: [PATCH] fix: Prevent auto-updating translation files when key is missing --- server/patches/sails+1.5.14.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 server/patches/sails+1.5.14.patch diff --git a/server/patches/sails+1.5.14.patch b/server/patches/sails+1.5.14.patch new file mode 100644 index 00000000..fb950ef9 --- /dev/null +++ b/server/patches/sails+1.5.14.patch @@ -0,0 +1,24 @@ +diff --git a/node_modules/sails/lib/hooks/i18n/index.js b/node_modules/sails/lib/hooks/i18n/index.js +index a0c74ed..582ff66 100644 +--- a/node_modules/sails/lib/hooks/i18n/index.js ++++ b/node_modules/sails/lib/hooks/i18n/index.js +@@ -108,7 +108,8 @@ module.exports = function(sails) { + locales: sails.config.i18n.locales, + defaultLocale: sails.config.i18n.defaultLocale, + directory: resolvedLocalesDirectory, +- extension: I18N_LOCALES_FILE_EXTENSION ++ extension: I18N_LOCALES_FILE_EXTENSION, ++ devMode: false + }); + + // Add all of the i18n prototype methods into this hook. +@@ -176,7 +177,8 @@ module.exports = function(sails) { + defaultLocale: sails.config.i18n.defaultLocale, + directory: resolvedLocalesDirectory, + extension: I18N_LOCALES_FILE_EXTENSION, +- request: req ++ request: req, ++ devMode: false + }); + + // Mix translation capabilities into res.locals.