{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"$schema":{"type":"string"},"version":{"type":"number","const":2},"project":{"description":"The project id these files push to and pull from.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"server":{"description":"API origin; https://localeasy.app if absent. LOCALEASY_URL and --api-url override it.","type":"string","format":"uri"},"sourceLocale":{"description":"The language the source files are written in.","type":"string"},"locales":{"description":"Translation languages to pull; all of the project's when absent.","type":"array","items":{"type":"string","description":"A BCP 47 language tag as Intl.getCanonicalLocales writes it, such as sv or pt-BR."}},"format":{"type":"string","enum":["i18next","json","json-flat","csv","properties","strings","po","android","xliff","yaml","arb","stringsdict","resx","php","markdown"],"description":"File format; detected from the source file when absent."},"dialect":{"type":"string","enum":["mf2","plain","icu","arb","printf","python","python-brace","apple","dotnet","ruby","template","qt","i18next","laravel","android","xliff"],"description":"How messages spell placeholders and plurals; each format has a default."},"defaults":{"description":"Settings every workspace inherits; a workspace's own value wins.","type":"object","properties":{"server":{"description":"API origin; https://localeasy.app if absent. LOCALEASY_URL and --api-url override it.","type":"string","format":"uri"},"sourceLocale":{"description":"The language the source files are written in.","type":"string"},"locales":{"description":"Translation languages to pull; all of the project's when absent.","type":"array","items":{"type":"string","description":"A BCP 47 language tag as Intl.getCanonicalLocales writes it, such as sv or pt-BR."}},"format":{"type":"string","enum":["i18next","json","json-flat","csv","properties","strings","po","android","xliff","yaml","arb","stringsdict","resx","php","markdown"],"description":"File format; detected from the source file when absent."},"dialect":{"type":"string","enum":["mf2","plain","icu","arb","printf","python","python-brace","apple","dotnet","ruby","template","qt","i18next","laravel","android","xliff"],"description":"How messages spell placeholders and plurals; each format has a default."}},"additionalProperties":false},"files":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","description":"Source-language files. Relative to this file. Placeholders: {locale} {locale_snake} {locale_android} {language} {region} {namespace} {package}."},"translation":{"type":"string","description":"Translation files; needs a locale placeholder. Relative to this file. Placeholders: {locale} {locale_snake} {locale_android} {language} {region} {namespace} {package}."},"namespace":{"description":"The namespace these files hold; may use {namespace} and {package}. Defaults to {namespace} from the path, else default.","type":"string"},"format":{"type":"string","enum":["i18next","json","json-flat","csv","properties","strings","po","android","xliff","yaml","arb","stringsdict","resx","php","markdown"],"description":"File format; detected from the source file when absent."},"dialect":{"type":"string","enum":["mf2","plain","icu","arb","printf","python","python-brace","apple","dotnet","ruby","template","qt","i18next","laravel","android","xliff"],"description":"How messages spell placeholders and plurals; each format has a default."}},"required":["source","translation"],"additionalProperties":false,"description":"Files that belong together: one source file per namespace and its translations."}},"extract":{"type":"object","properties":{"extractor":{"type":"string","enum":["i18next"],"description":"What finds the keys: i18next is i18next-cli, installed in this project."},"input":{"minItems":1,"type":"array","items":{"type":"string"},"description":"The code to scan, as globs relative to this file, such as src/**/*.{ts,tsx}."},"options":{"description":"Passed to the extractor as they are, but for ignore, whose globs are relative to this file, as input's are: for i18next, i18next-cli's extract options, such as functions or keySeparator.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["extractor","input"],"additionalProperties":false,"description":"Where localeasy extract finds the keys the code uses."},"types":{"description":"Where localeasy types writes the TypeScript declarations of the source files' keys, relative to this file.","type":"string"},"workspaces":{"description":"Directories, as globs, each with its own localeasy.json (monorepos).","type":"array","items":{"type":"string"}}},"required":["version"],"additionalProperties":false,"description":"Localeasy CLI configuration, version 2."}