We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This will add support for providing labels in multiple languages.
The text was updated successfully, but these errors were encountered:
Some code researched already for this purposes, not sure if I'll use it:
import { parseLanguageTag } from '@phensley/language-tag' vine.object({ nameMap: vine.record(vine.string().trim()).validateKeys((keys, field) => { const nonBcp47Key = keys.find((key) => parseLanguageTag(key).compact() === 'und') if (!nonBcp47Key) { field.report( 'Language must be a valid BCP-47 language tag', // message 'record.keys.language', field ) } }), })
Sorry, something went wrong.
Reference links:
No branches or pull requests
This will add support for providing labels in multiple languages.
The text was updated successfully, but these errors were encountered: