Merge master

This commit is contained in:
Pieter Vander Vennet 2023-07-28 00:29:21 +02:00
commit 80168f5d0d
919 changed files with 95585 additions and 8504 deletions

View file

@ -0,0 +1,16 @@
import { Validator } from "../Validator"
export default class TranslationValidator extends Validator {
constructor() {
super("translation", "Makes sure the the string is of format `Record<string, string>` ")
}
isValid(value: string, getCountry?: () => string): boolean {
try {
JSON.parse(value)
return true
} catch (e) {
return false
}
}
}