-
Notifications
You must be signed in to change notification settings - Fork 34
feat: Add Azerbaijani language to i18n package #164
New issue
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,91 @@ | ||
| package az | ||
|
|
||
| import ( | ||
| "github.com/Oudwins/zog/zconst" | ||
| ) | ||
|
|
||
| var Map zconst.LangMap = map[zconst.ZogType]map[zconst.ZogIssueCode]string{ | ||
| zconst.TypeString: { | ||
| zconst.NotIssueCode(zconst.IssueCodeLen): "sətir {{len}} simvol olmamalıdır", | ||
| zconst.NotIssueCode(zconst.IssueCodeEmail): "etibarlı e-poçt olmamalıdır", | ||
| zconst.NotIssueCode(zconst.IssueCodeUUID): "etibarlı UUID olmamalıdır", | ||
| zconst.NotIssueCode(zconst.IssueCodeMatch): "sətir yanlışdır", | ||
| zconst.NotIssueCode(zconst.IssueCodeURL): "etibarlı URL olmamalıdır", | ||
| zconst.NotIssueCode(zconst.IssueCodeHasPrefix): "sətir '{{prefix}}' ilə başlamamalıdır", | ||
| zconst.NotIssueCode(zconst.IssueCodeHasSuffix): "sətir '{{suffix}}' ilə bitməməlidir", | ||
| zconst.NotIssueCode(zconst.IssueCodeContains): "sətir daxilində '{{contained}}' olmamalıdır", | ||
| zconst.NotIssueCode(zconst.IssueCodeContainsDigit): "sətir daxilində rəqəm olmamalıdır", | ||
| zconst.NotIssueCode(zconst.IssueCodeContainsUpper): "sətir daxilində böyük hərf olmamalıdır", | ||
| zconst.NotIssueCode(zconst.IssueCodeContainsLower): "sətir daxilində kiçik hərf olmamalıdır", | ||
| zconst.NotIssueCode(zconst.IssueCodeContainsSpecial): "sətir daxilində xüsusi simvol olmamalıdır", | ||
| zconst.NotIssueCode(zconst.IssueCodeOneOf): "sətir {{one_of_options}} variantlarından biri olmamalıdır", | ||
| zconst.IssueCodeRequired: "tələb olunur", | ||
| zconst.IssueCodeNotNil: "boş olmamalıdır", | ||
| zconst.IssueCodeMin: "sətir ən azı {{min}} simvol olmalıdır", | ||
| zconst.IssueCodeMax: "sətir ən çox {{max}} simvol olmalıdır", | ||
| zconst.IssueCodeLen: "sətir {{len}} simvol olmalıdır", | ||
| zconst.IssueCodeEmail: "etibarlı e-poçt olmalıdır", | ||
| zconst.IssueCodeUUID: "etibarlı UUID olmalıdır", | ||
| zconst.IssueCodeMatch: "sətir yanlışdır", | ||
| zconst.IssueCodeURL: "etibarlı URL olmalıdır", | ||
| zconst.IssueCodeHasPrefix: "sətir '{{prefix}}' ilə başlamalıdır", | ||
| zconst.IssueCodeHasSuffix: "sətir '{{suffix}}' ilə bitməlidir", | ||
| zconst.IssueCodeContains: "sətir daxilində '{{contained}}' olmalıdır", | ||
| zconst.IssueCodeContainsDigit: "sətir daxilində ən azı bir rəqəm olmalıdır", | ||
| zconst.IssueCodeContainsUpper: "sətir daxilində ən azı bir böyük hərf olmalıdır", | ||
| zconst.IssueCodeContainsLower: "sətir daxilində ən azı bir kiçik hərf olmalıdır", | ||
| zconst.IssueCodeContainsSpecial: "sətir daxilində ən azı bir xüsusi simvol olmalıdır", | ||
| zconst.IssueCodeOneOf: "sətir {{one_of_options}} variantlarından biri olmalıdır", | ||
| zconst.IssueCodeFallback: "sətir yanlışdır", | ||
| }, | ||
| zconst.TypeBool: { | ||
| zconst.IssueCodeRequired: "tələb olunur", | ||
| zconst.IssueCodeNotNil: "boş olmamalıdır", | ||
| zconst.IssueCodeTrue: "qiymət 'true' olmalıdır", | ||
| zconst.IssueCodeEQ: "qiymət {{eq}}-a bərabər olmalıdır", | ||
| zconst.IssueCodeFalse: "qiymət 'false' olmalıdır", | ||
| zconst.IssueCodeFallback: "qiymət yanlışdır", | ||
| }, | ||
| zconst.TypeNumber: { | ||
| zconst.IssueCodeRequired: "tələb olunur", | ||
| zconst.IssueCodeNotNil: "boş olmamalıdır", | ||
| zconst.IssueCodeLTE: "rəqəm {{lte}}-dən kiçik və ya bərabər olmalıdır", | ||
| zconst.IssueCodeLT: "rəqəm {{lt}}-dən kiçik olmalıdır", | ||
| zconst.IssueCodeGTE: "rəqəm {{gte}}-dən böyük və ya bərabər olmalıdır", | ||
| zconst.IssueCodeGT: "rəqəm {{gt}}-dən böyük olmalıdır", | ||
| zconst.IssueCodeEQ: "rəqəm {{eq}}-ə bərabər olmalıdır", | ||
| zconst.NotIssueCode(zconst.IssueCodeEQ): "rəqəm {{eq}}-ə bərabər olmamalıdır", | ||
| zconst.IssueCodeOneOf: "rəqəm {{options}} variantlarından biri olmalıdır", | ||
| zconst.NotIssueCode(zconst.IssueCodeOneOf): "rəqəm {{options}} variantlarından biri olmamalıdır", | ||
| zconst.IssueCodeFallback: "rəqəm yanlışdır", | ||
| }, | ||
| zconst.TypeTime: { | ||
| zconst.IssueCodeRequired: "tələb olunur", | ||
| zconst.IssueCodeNotNil: "boş olmamalıdır", | ||
| zconst.IssueCodeAfter: "vaxt {{after}} tarixindən sonra olmalıdır", | ||
| zconst.IssueCodeBefore: "vaxt {{before}} tarixindən əvvəl olmalıdır", | ||
| zconst.IssueCodeEQ: "vaxt {{eq}}-ə bərabər olmalıdır", | ||
| zconst.IssueCodeFallback: "vaxt yanlışdır", | ||
| }, | ||
| zconst.TypeSlice: { | ||
| zconst.IssueCodeRequired: "tələb olunur", | ||
| zconst.IssueCodeNotNil: "boş olmamalıdır", | ||
| zconst.IssueCodeMin: "siyahıda ən azı {{min}} element olmalıdır", | ||
| zconst.IssueCodeMax: "siyahıda maksimum {{max}} element olmalıdır", | ||
| zconst.IssueCodeLen: "siyahıda {{len}} element olmalıdır", | ||
| zconst.NotIssueCode(zconst.IssueCodeLen): "siyahıda {{len}} element olmamalıdır", | ||
| zconst.IssueCodeContains: "siyahı daxilində '{{contained}}' olmalıdır", | ||
| zconst.NotIssueCode(zconst.IssueCodeContains): "siyahı daxilində '{{contained}}' olmamalıdır", | ||
| zconst.IssueCodeFallback: "siyahı yanlışdır", | ||
| }, | ||
| zconst.TypeStruct: { | ||
| zconst.IssueCodeRequired: "tələb olunur", | ||
| zconst.IssueCodeNotNil: "boş olmamalıdır", | ||
| zconst.IssueCodeFallback: "struktur yanlışdır", | ||
| // JSON | ||
| zconst.IssueCodeInvalidJSON: "JSON formatı yanlışdır", | ||
| // ZHTTP ISSUES | ||
| zconst.IssueCodeZHTTPInvalidForm: "form formatı yanlışdır", | ||
| zconst.IssueCodeZHTTPInvalidQuery: "sorğu parametrləri yanlışdır", | ||
| }, | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Unify placeholder names for one-of options
In the number block, you use the
{{options}}placeholder, but in the string block it’s{{one_of_options}}. Use a consistent placeholder key across types to avoid mismatches during substitution.Proposed diff:
📝 Committable suggestion
🤖 Prompt for AI Agents