Prismy allows you to configure which localization files to sync by simply
adding a
prismy.json file at the root of your repository. This configuration
file lets you define the main branch, primary language, and the specific files
you want to synchronize.Example Configurations
Nested JSON Format with Alphabetical Sorting
Flat JSON Format Without Sorting
Auto-Filling Missing Translation Files
SetfillMissingLangFiles: true to automatically track the same files across all languages, even if they don’t exist yet.
en-US:home.json,settings.jsonfr-FR:home.json,settings.json← auto-addedes-ES:home.json← auto-added,settings.json
- Adding new translation files that should exist for all languages
- Working with glob patterns to ensure consistency across languages
- You want Prismy to detect missing translations even if the file doesn’t exist yet
Currently supported for GitHub only. GitLab support coming soon.
Configuration Options
mainBranch: The default branch for Prismy (can be staging or preprod).mainLanguage: The source language for translations.filesToSync: Array of file groups to sync. Each group supports:sort: How keys are organized -alphabetical-orderornot-sorted.format: File structure -flat-json(key-value pairs) ornested-json(hierarchical).i18nLib: Your i18n library (e.g.,i18next,polyglotjs,react-intl) for proper pluralization handling.fillMissingLangFiles: Whentrue, automatically tracks the same files across all languages, creating placeholders for missing ones. (GitHub only)files: Language codes mapped to file paths (supports glob patterns likelocales/*/home.json).