Supported File Types (Strings)

.PROPERTIES - Mozilla (Strings)

File Extensions 

.properties

API Extension 

mozilla_properties

Import 

Yes

Export 

Yes

Plural forms support 

No

Description support 

No

Format options

These options that can be specified when a file is uploaded and/or downloaded. Depending on the upload/download method (API, CLI, Repo sync etc.), they can be specified in query parameters Upload, Download or in the phrase.yml configuration file.

escape_single_quotes: true, omit_separator_space: false, crlf_line_terminators: false, escape_meta_chars: true

Mozilla Localization uses .properties files. Syntax and requirements for these properties are mostly identical with standard Java properties files.

Perform a sanity check prior to translation including removing duplicate keys (especially for larger files) and using correct line breaks (any line break in text strings should be preceded with a \n, otherwise it will be ignored by the parser).

Code Sample

boolean_key = --- true\n
empty_string_translation = 
# This is the amazing description for this key!
key_with_description = Check it out\! This key has a description\! (At least in some formats)
key_with_line-break = This translations contains\na line-break.
nested.deeply.key = I'm a deeply nested key.
nested.key = This key is nested inside a namespace.
null_translation = 
pluralized_key.one = Only one kitten found.
pluralized_key.other = Wow, you have %s kittens\!
pluralized_key.zero = You have no kitten.
sample_collection = ---\n- first item\n- second item\n- third item\n
simple_key = Simple key, simple message, so simple.
unverified_key = This translation is not yet verified and waits for it. (In some formats we also export this status)
Was this article helpful?
★ ★ ★ ★ ★

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question, submit a request to our Support team.
Thank you for your feedback.