Setting what text and formats the CLI pulls down
config.yml
file is the source of truth for a given directory about how the CLI should fetch and store data from Ditto based on the specified properties. It includes information about which Ditto components the CLI should pull text from, the string file formats, and more.
This is the default configuration file that is generated the first time that the CLI is run in a given directory:
projects: Array<{ id: DeveloperId }>
variants: Array<{ id: “all” | “base” | DeveloperId }>
richText: “html” | false
outDir: string
./ditto
.
outputs: Array<{ format: Format, framework: Framework, projects: Array<{ id”: DeveloperId }>, variants: Array<{ id: “all” | “base” | DeveloperId }>, outDir: string }>
json
files for the top-level query — just the base text from the project with developer ID “top-level”. These files will be saved to the directory ./ditto/top
with rich text enabled../ditto/french
with rich text enabled.i18next
driver file(s). All of these files will be saved to the ./ditto/i18next
directory with rich text disabled.