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.mainBranch
: The default branch for Prismy - can be your staging or preprod branch.mainLanguage
: The default source language for translations.filesToSync
: An array defining which files to sync, with options for sorting and format.
sort
: Defines how keys within the files are organized (alphabetical-order
or not-sorted
).format
: Specifies whether the JSON files are flat-json
(single-level key-value pairs) or nested-json
(hierarchical structure).i18nLib
Defines the lib you are using, useful for Prismy to handle the pluralisation properly for instance. Should be “i18next”, “polyglotjs”, “react-intl” or any other lib you are usingfiles
: A mapping of language codes to file paths that should be included in synchronization.