Skip to content

Commit f0a6b5a

Browse files
committed
feat(sync-i18n.mjs): add log message and process exit when no new translation strings are found to indicate that en.json is up to date
feat(sync-i18n.mjs): add log message when nothing needs to be synced with Crowdin to provide clarity on the sync process
1 parent e777f63 commit f0a6b5a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/sync-i18n.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ const missingKeys = [...foundKeys].filter((k) => !existingKeys.has(k))
104104

105105
if (missingKeys.length === 0) {
106106
log(GREEN, '✓ No new translation strings found — en.json is up to date')
107+
log(GREEN, '✅ Nothing to sync with Crowdin.')
108+
process.exit(0)
107109
} else {
108110
log(YELLOW, `📝 Adding ${missingKeys.length} new string(s) to en.json:`)
109111
for (const key of missingKeys) {

0 commit comments

Comments
 (0)