Prompt
Why are some locales missing after sync with Git
Latest observation
Nov 2, 2026
OpenAI APIWeb search: off
If some locales disappear after a Git sync, it usually means the sync process is not actually preserving everything from your working copy. Common causes:
-
They were never committed
- The missing locale files/directories may exist locally but weren’t added and pushed to Git.
- After syncing/pulling, only tracked files are restored.
-
They’re ignored by
.gitignore- Locale files may be excluded accidentally by ignore rules.
- Check whether the missing locale paths match any
.gitignorepatterns.
-
A merge or pull overwrote them
- If another branch or remote version doesn’t contain those locales, a sync can replace your local state with the repository state.
-
Case-sensitivity differences
en-USvsen-usor similar can behave differently across operating systems and filesystems.- Git may track one version while your local OS treats names differently.
-
They were deleted in another commit
- Someone may have removed them upstream, and your sync brought in that deletion.
-
Sparse checkout or deployment filtering
- If your environment uses sparse checkout, submodules, CI filters, or export scripts, only a subset of locale files may be fetched.
-
Generated files weren’t regenerated
- If locales are produced by a build step, syncing Git alone won’t recreate them unless the generation step runs.
What to check:
git status— see whether the files are untracked, deleted, or ignored.git ls-files | grep <locale>— confirm whether Git tracks them.git check-ignore -v <path>— see if.gitignoreis excluding them.git log -- <path>— check if they were removed in history.- Compare the remote branch and local branch to confirm the files exist upstream.
If you want, I can help you debug this with a few commands based on your repo structure and the locale paths.
Brands