Convert MO to JSON
Turn MO files into JSON. JSON for agents with the source and target languages and one object per entry holding its context, source and plural source, translation or plural forms, state, notes, comments, source references, flags and an obsolete mark.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop MO files on the dialor turn it to pick what to do
A JSON file with one object per entry.The catalog's languages and every entry come out as readable JSON.
What you get
One JSON file for the whole catalog. It holds the source and target languages, followed by one object for each entry in the MO file.
Each entry object carries its context, its source text and its plural source. It also carries the translation, or the plural forms when the entry has them.
What each entry holds
Beyond the text, an entry keeps its state, its notes and its comments. Source references and flags are kept too.
Entries marked obsolete keep that mark, so you can tell them apart from current ones.
Next steps
The output is JSON, so you can join several catalogs with merge JSON. To see what else JSON can be made from, browse every JSON conversion.
MO and JSON.What each format is.
The formats
Gettext MO
Compiled gettext catalogs that programs load at run time, made from PO files by msgfmt.
- Extensions
- .mo .gmo
- MIME type
- application
/x -gettext -translation - Kind
- Text and data
JSON
JSON, the data format of every API.
- Extensions
- .json
- MIME type
- application
/json - Kind
- Text and data
In your code.The same MO to JSON conversion through the API, for your app or your agent.
$ cv convert report.mo report.json$ cv convert report.mo report.jsonQuestions.What people ask about MO to JSON.
It contains the source and target languages and one object per entry. Each object holds the entry's context, source, plural source, translation or plural forms, state, notes, comments, source references, flags and obsolete mark.
Yes. An entry with plurals keeps its plural source and its plural forms in its object.
Yes. They stay in the file with an obsolete mark.
One file. The whole catalog goes into a single JSON file.