Skip to content
Conner Olsen edited this page Aug 19, 2026 · 13 revisions

Create or use an existing localization file for your mod settings, such as cmf-example-mod/main_menu/localization/english/cmm_example_mod_l_english.yml.

CMM follows a standard naming scheme for all localization keys.

Mod Name

l_english:
 cmm_example_name: "CMM Example Mod" # Name of your mod

Key format: [Your_Mod_ID]_name

Tab, Group, & Setting Names

Tabs and settings follow the format [Your_Mod_ID]__[ID]_name. Groups are scoped per-tab and follow [Your_Mod_ID]__[Tab_ID]__[Group_ID]_name.

l_english:
 # ...
 cmm_example__general_name: "General"                            # Tab name
 cmm_example__general__general_toggles_name: "Toggles"           # Group name
 cmm_example__example_toggle_name: "Example Toggle"              # Setting name

Where in this example:

  • cmm_example is the mod ID
  • general is the tab ID
  • general_toggles is the group ID
  • example_toggle is the setting ID

You only need one key per tab, group, and setting you make. Sub-tabs use the same key format as tabs.

Dropdown Options

Each option needs a localization key: [Your_Mod_ID]__[Your_Setting_ID]_option_[index]_name

l_english:
 cmm_example__example_dropdown_name: "Example Dropdown"   # Setting name
 cmm_example__example_dropdown_option_1_name: "Option A"  # First option
 cmm_example__example_dropdown_option_2_name: "Option B"  # Second option
 cmm_example__example_dropdown_option_3_name: "Option C"  # Third option

Dropdown Option Descriptions

Each dropdown option can optionally have a description tooltip: [Your_Mod_ID]__[Your_Setting_ID]_option_[index]_desc

l_english:
 cmm_example__example_dropdown_option_1_desc: "The first mode."
 cmm_example__example_dropdown_option_2_desc: "The second mode."

Only options with a _desc key will show a tooltip.

Button Text

Buttons require a localization key for the text on the button: [Your_Mod_ID]__[Your_Setting_ID]_text

l_english:
 cmm_example__example_button_text: "Run" # Your button text

Settings Lists

Settings lists require several additional localization keys:

Key Pattern Description
[Mod_ID]__[Setting_ID]_item_column_name Item column header
[Mod_ID]__[Setting_ID]_i[index]_name Row labels
[Mod_ID]__[Setting_ID]__[Field_ID]_name Field column labels
[Mod_ID]__[Setting_ID]__[Field_ID]_desc Field column header tooltip (optional)
[Mod_ID]__[Setting_ID]__[Field_ID]_option_[index]_name Dropdown field options
[Mod_ID]__[Setting_ID]__[Field_ID]_text Button field caption

Example:

l_english:
 # Setting name and description
 cmm_example__example_list_name: "Priority List"
 cmm_example__example_list_desc: "Example ordered list setting."

 # Column header for the item name column
 cmm_example__example_list_item_column_name: "Item"

 # Row labels (one per item, 1-indexed)
 cmm_example__example_list_i1_name: "Item A"
 cmm_example__example_list_i2_name: "Item B"
 cmm_example__example_list_i3_name: "Item C"
 cmm_example__example_list_i4_name: "Item D"
 cmm_example__example_list_i5_name: "Item E"

 # Field column labels
 cmm_example__example_list__enabled_name: "Enabled"
 cmm_example__example_list__mode_name: "Mode"
 cmm_example__example_list__weight_name: "Weight"

 # Dropdown field options (if using a dropdown field)
 cmm_example__example_list__mode_option_1_name: "Low"
 cmm_example__example_list__mode_option_2_name: "Standard"
 cmm_example__example_list__mode_option_3_name: "High"

List Field Formatting (Prefix/Postfix)

Numeric, slider, and data list fields can display prefix and postfix text around the value, including formatting codes like color tags. Define optional _prefix and _postfix localization keys for the field:

l_english:
 cmm_example__example_list__weight_prefix: "#G "
 cmm_example__example_list__weight_postfix: "%#!"

Key format: [Mod_ID]__[Setting_ID]__[Field_ID]_prefix and [Mod_ID]__[Setting_ID]__[Field_ID]_postfix

Both keys are optional. If neither is defined, the raw numeric value is displayed.

The keys can be repointed to an alternate root at runtime with cmm_set_list_field_localization; see Settings List - Repointing Field Localization.

Conditional Formatting

To apply different formatting based on the value's sign, add _high and/or _low variants. The GUI selects between three tiers:

  • _prefix_high / _postfix_high - used when value > 0
  • _prefix / _postfix - used when value == 0 (or as fallback)
  • _prefix_low / _postfix_low - used when value < 0
l_english:
 cmm_example__example_list__weight_prefix_high: "#G "
 cmm_example__example_list__weight_postfix_high: "#!"
 cmm_example__example_list__weight_prefix_low: "#R "
 cmm_example__example_list__weight_postfix_low: "#!"

All variants are independent, so you can use any combination. If _high is missing, positive values fall back to the regular prefix/postfix. Same for _low with negative values.

Descriptions

Nearly everything in CMM supports an optional description, which appears in the tooltip for each element.

The format is identical to names, with _desc instead of _name:

l_english:
 cmm_example_desc: "An example reference mod for CMM."                   # Mod description
 cmm_example__general_desc: "General purpose settings."                   # Tab description
 cmm_example__general__general_toggles_desc: "All toggle settings."       # Group description
 cmm_example__example_toggle_desc: "An example toggle setting."           # Setting description

Clone this wiki locally