-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from pydantic_i18n import PydanticI18n | ||
|
||
translations = { | ||
"en_US": { | ||
"Field required": "field required", | ||
}, | ||
"de_DE": { | ||
"Field required": "Feld erforderlich", | ||
"Value should have at least 1 item after validation, not 0": "Der Wert sollte nach der Validierung mindestens 1 Element haben, nicht 0", | ||
}, | ||
"nl_NL": { | ||
"Field required": "Veld verplicht", | ||
"Value should have at least 1 item after validation, not 0": "De waarde moet na validatie minimaal 1 item bevatten, niet 0", | ||
}, | ||
} | ||
|
||
|
||
tr = PydanticI18n(translations) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters