Locale refs
Schemas can contain internationalized content thanks to a conventional ~$locale~ variable in ref paths.
These refs will be resolved by replacing ~$locale~ with the current locale, and if the resolution fails it will be attempted again with the defaultLocale option.
Warning: this resolution method is not a part of JSON schema or any other specification, schemas that use it will be incompatible with other tooling. You might want to use our method resolveLocaleRefs in your code:
import { resolveLocaleRefs } from '@json-layout/core
resolveLocaleRefs(schema, ajv, locale)