MCPcopy
hub / github.com/mashpie/i18n-node / syncToAllFiles

Function syncToAllFiles

i18n.js:1073–1080  ·  view source on GitHub ↗
(singular, plural)

Source from the content-addressed store, hash-verified

1071 * when not already existing, checked via translate
1072 */
1073 const syncToAllFiles = (singular, plural) => {
1074 // iterate over locales and translate again
1075 // this will implicitly write/sync missing keys
1076 // to the rest of locales
1077 for (const l in locales) {
1078 translate(l, singular, plural, true)
1079 }
1080 }
1081
1082 /**
1083 * Allows delayed access to translations nested inside objects.

Callers 1

translateFunction · 0.85

Calls 1

translateFunction · 0.85

Tested by

no test coverage detected