From 3a62a4a241e04ea40d2fb2ee9e9458144091d7e5 Mon Sep 17 00:00:00 2001 From: Thibault Andreis <36659965+ThibaultAndreis@users.noreply.github.com> Date: Thu, 2 Nov 2023 16:26:36 +0100 Subject: [PATCH] change log level for missing translations change log level for "missing translations" from warn to debug --- src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index d7ec316..d977663 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -23,12 +23,12 @@ export const translate: Translations.Translate = ({ let text = (translations[locale] || {})[key]; if (fallbackLocale && text === undefined) { - logger.warn(`No translation provided for '${key}' key in locale '${locale}'. Trying fallback '${fallbackLocale}'`); + logger.debug(`No translation provided for '${key}' key in locale '${locale}'. Trying fallback '${fallbackLocale}'`); text = (translations[fallbackLocale] || {})[key]; } if (text === undefined) { - logger.warn(`No translation provided for '${key}' key in fallback '${fallbackLocale}'.`); + logger.debug(`No translation provided for '${key}' key in fallback '${fallbackLocale}'.`); if (rest.hasOwnProperty('fallbackValue') ) { return rest.fallbackValue; }