mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-05-24 05:07:39 +03:00
feat: migrate to _ locales handler
This commit is contained in:
@@ -4,7 +4,7 @@ export function validatePath(value: string): ValidationResult {
|
||||
if (!value) {
|
||||
return {
|
||||
valid: false,
|
||||
message: 'Path cannot be empty',
|
||||
message: _('Path cannot be empty'),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -19,7 +19,8 @@ export function validatePath(value: string): ValidationResult {
|
||||
|
||||
return {
|
||||
valid: false,
|
||||
message:
|
||||
message: _(
|
||||
'Invalid path format. Path must start with "/" and contain valid characters',
|
||||
),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user