mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
Refactor i18n approach (#2875)
* Refactor i18n approach * chore: move to shared * chore: add default * create DialogService and update LoadingService (#2876) * complete translation infra for ui project, currently broken * cleanup and more dictionaries * chore: fix --------- Co-authored-by: Matt Hill <MattDHill@users.noreply.github.com> Co-authored-by: Matt Hill <mattnine@protonmail.com>
This commit is contained in:
@@ -243,15 +243,15 @@ function listValidators(spec: IST.ValueSpecList): ValidatorFn[] {
|
||||
return validators
|
||||
}
|
||||
|
||||
function fileValidators(spec: IST.ValueSpecFile): ValidatorFn[] {
|
||||
const validators: ValidatorFn[] = []
|
||||
// function fileValidators(spec: IST.ValueSpecFile): ValidatorFn[] {
|
||||
// const validators: ValidatorFn[] = []
|
||||
|
||||
if (spec.required) {
|
||||
validators.push(Validators.required)
|
||||
}
|
||||
// if (spec.required) {
|
||||
// validators.push(Validators.required)
|
||||
// }
|
||||
|
||||
return validators
|
||||
}
|
||||
// return validators
|
||||
// }
|
||||
|
||||
export function numberInRange(
|
||||
min: number | null,
|
||||
|
||||
Reference in New Issue
Block a user