Skip to main content

Best Practices

This page explains best practices for writing translations and how to structure them.

Prefix

A prefix can be defined on the top of the file. This specific prefix links to another translation format.prefix from the core namespace and global language file.

prefix: "{core:format.prefix/global('<red>Cool Prefix')}"

The prefix can be accessed by using a linked translation. This looks as follows when in the same namespace and language file.

key: "{prefix} This is a translation with a prefix"