Closed janishorsts closed 1 year ago
pkg/convert contains all conversations between different translation files and a translate data model.
pkg/convert
translate
Convert to and from Angular JSON.
Example of Angular JSON.
func FromNgJson(b []byte) (model.Messages, error) func ToNgJson(model.Messages) ([]byte, error)
{ "locale": "en-GB", "translations": { "4606963464835766483": "Welcome!" } }
The target is serialized []byte.
pkg/convert
contains all conversations between different translation files and atranslate
data model.Convert to and from Angular JSON.
Example of Angular JSON.
The target is serialized []byte.