{"version":3,"file":"getShouldTranslate.mjs","names":["getReadonlyConditionStore"],"sources":["../../../src/hooks/utils/getShouldTranslate.ts"],"sourcesContent":["import { getReadonlyConditionStore } from '../../condition-store/singleton-operations';\nimport { getI18nConfig } from 'gt-i18n/internal';\n\n// Pure helper shared by hook-based and RSC code paths. This module must stay\n// free of hook/context imports so it can be reached from the components-rsc\n// entrypoint.\n\n/**\n * Returns true if (1) i18n enabled and (2) translation is required\n */\nexport function getShouldTranslate(): boolean {\n  const conditionStore = getReadonlyConditionStore();\n  const i18nConfig = getI18nConfig();\n\n  const enableI18n = conditionStore.getEnableI18n();\n  const locale = conditionStore.getLocale();\n  return enableI18n && i18nConfig.requiresTranslation(locale);\n}\n"],"mappings":"oIAUA,SAAgB,GAA8B,CAC5C,IAAM,EAAiBA,GAA2B,CAC5C,EAAa,GAAe,CAE5B,EAAa,EAAe,eAAe,CAC3C,EAAS,EAAe,WAAW,CACzC,OAAO,GAAc,EAAW,oBAAoB,EAAO"}