Code Monkey home page Code Monkey logo

Comments (3)

zikwall avatar zikwall commented on August 30, 2024

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": "[email protected]",
        "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 is_unverified field

from go-lokalise-api.

Dosexe avatar Dosexe commented on August 30, 2024

@zikwall Hi, sorry for a long delay, the issue will be fixed on next release on the next week.

from go-lokalise-api.

Dosexe avatar Dosexe commented on August 30, 2024

Fixed in v4.0.0

from go-lokalise-api.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.