(singular, plural)
| 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. |