-
Notifications
You must be signed in to change notification settings - Fork 18
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
Update method does not correspond to what is stated in the API #38
Comments
Also the body of the response to request above does not match: {
"project_id": "3002780358964f9bab5a92.87762498",
"translation": {
"translation_id": 344412,
"key_id": 553662,
"language_iso": "en_US",
"modified_at": "2018-12-31 12:00:00 (Etc\/UTC)",
"modified_at_timestamp": 1546257600,
"modified_by": 420,
"modified_by_email": "user@mycompany.com",
"translation": "Quick brown fox jumps over the lazy dog.",
"is_unverified": false,
"is_reviewed": true,
"reviewed_by": 1357,
"words": 8,
"custom_translation_statuses": [],
"task_id": null,
"segment_number": 1
}
} the client expects following struct: type Translation struct {
TranslationID int64 `json:"translation_id"`
Translation string `json:"translation"` // could be string or json in case it includes plural forms and is_plural is true.
KeyID int64 `json:"key_id"`
LanguageISO string `json:"language_iso"`
ModifiedAt string `json:"modified_at"`
ModifiedAtTs int64 `json:"modified_at_timestamp"`
ModifiedBy int64 `json:"modified_by"`
ModifiedByEmail string `json:"modified_by_email"`
IsFuzzy bool `json:"is_fuzzy"`
IsReviewed bool `json:"is_reviewed"`
ReviewedBy int64 `json:"reviewed_by"`
Words int64 `json:"words"`
TaskID int64 `json:"task_id"`
CustomTranslationStatuses []TranslationStatus `json:"custom_translation_statuses"`
} there is no |
@zikwall Hi, sorry for a long delay, the issue will be fixed on next release on the next week. |
Fixed in v4.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Update method does not correspond to what is stated in the API: https://app.lokalise.com/api2docs/curl/#
Request URL:
PUT https://api.lokalise.com/api2/projects/{project_id:branch}/translations/{translation_id}
Request Body:
But there is no
is_unverified
flag in go-lokalise client, there is anis_fuzzy
flag instead:To Reproduce
import github.com/lokalise/go-lokalise-api/v3
Expected behavior
import github.com/lokalise/go-lokalise-api/v3
Your environment:
Additional context
Is it possible to update go-lokalise library for current version of the Lokalise API?
The text was updated successfully, but these errors were encountered: