---
# System prepended metadata

title: Fluent translations
tags: [project-fluent]

---

---
title: Fluent translations
tags: project-fluent
---

# Fluent translations

For the syntax used in FTL files, see [Mozilla's Project Fluent page](https://projectfluent.org/).

## Built-in functions

Project Fluent (the framework/mod, not the standard) provides some built-in functions that can be used by all mods.

### `MOD_NAME`

This function returns the name of the mod (found in its `manifest.json`) provided as the argument.

|Argument|Overview|
|-|-|
|#0|The key to get a translation for.<br/>Optional -- this defaults to the mod this function is currently being called for.|

### `FLUENT`

This function returns a different Fluent-based translation.

|Argument|Overview|
|-|-|
|#0|The key to get a translation for.<br/>Required|
|`mod`|The mod to get a translation for.<br/>Optional -- this defaults to the mod this function is currently being called for.|
|`file`|The specific translations file to load translations from.<br/>Optional -- this defaults to `null`, which will use the main file.|

### `I18N`

This function returns an i18n-based translation.

|Argument|Overview|
|-|-|
|#0|The key to get a translation for.<br/>Required|
|`mod`|The mod to get a translation for.<br/>Optional -- this defaults to the mod this function is currently being called for.|

### `TOUPPER`

This function returns provided argument in all uppercase characters.

|Argument|Overview|
|-|-|
|#0|The text to convert to uppercase.<br/>Required|

### `TOLOWER`

This function returns provided argument in all lowercase characters.

|Argument|Overview|
|-|-|
|#0|The text to convert to lowercase.<br/>Required|

### `CAPITALIZE_WORDS`

This function returns provided argument with all words capitalized.

|Argument|Overview|
|-|-|
|#0|The text to capitalize.<br/>Required|