Main menu

Export a template containing only source keys

GET https://localise.biz/api/export/template.{ext} 

This is different to exporting just your source language translations, because it only exports the left hand side of each mapping.

See supported export formats and more detail on the available options.

URI parameters

ext

Target file type specified as a file extension

arb | csv | html | ini | json | mo | php | po | pot | plist | bplist | properties | res | resx | sql | strings | stringsdict | tmx | ts | txt | xlf | xliff | xml | yml required
format

More specific format of file type. e.g. symfony applies to php, xlf & yml

string optional
filter

Filter assets by comma-separated tag names. Match any tag with * and negate tags by prefixing with !

string optional
index

Override default lookup key for the file format: "id", "text" or a custom alias

string optional
source

Specify alternative source locale instead of project default

string optional
namespace

Override the project name for some language packs that use it as a key prefix

string optional
fallback

Fallback locale for untranslated assets, specified as short code. e.g. en or en_GB

string optional
order

Export translations according to asset order

created | id optional
status

Export translations with a specific status or flag. Negate values by prefixing with !. e.g. "translated", or "!fuzzy".

string optional
printf

Force alternative "printf" style. See string formatting

php | java | objc | icu | python optional
charset

Specify preferred character encoding. Alternative to Accept-Charset header but accepts a single value which must be valid.

string optional
breaks

Force platform-specific line-endings. Default is Unix (LF) breaks.

Unix | DOS | Mac optional
no-comments

Disable rendering of redundant inline comments including the Loco banner.

boolean optional
no-folding

Protect dot-separated keys so that foo.bar is not folded into object properties.

boolean optional
key

API key - required if not sent in Authorization header

string optional

Request headers

Authorization

API key sent as "Loco <key>" or "Basic <encoded>". See Authentication.

string required if not in query

Response

Raw string data

Try it

Open in test console »


« /api/export