MCPcopy
hub / github.com/codeceptjs/CodeceptJS / loadTranslations

Function loadTranslations

lib/mocha/gherkin.js:197–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195// Import translations at module level to avoid async in parser
196let translations = null
197async function loadTranslations() {
198 if (!translations) {
199 // Import container to ensure it's initialized
200 const Container = await import('../container.js')
201 await Container.default.started()
202
203 // Now load translations
204 const translationsModule = await import('../../translations/index.js')
205 translations = translationsModule.default || translationsModule
206 }
207 return translations
208}
209
210function getTranslation(language) {
211 if (!translations) {

Callers 3

createMethod · 0.90
runOnceMethod · 0.85
runMethod · 0.85

Calls 1

startedMethod · 0.80

Tested by

no test coverage detected