Garry's Mod Wiki

language.FormatPhrase

  string language.FormatPhrase( string phrase )

Recently Added

This was recently added in version (2026.08.14). It might only be available on the Dev Branch right now.

Description

A convenience function that formats a localization phrase. See language.GetPhrase.

This is exactly the same as doing string.format( langauge.GetPhrase( "string" ), arg1, arg2, etc).

Arguments

1 string phrase
The phrase to translate.

Returns

1 string
The formatted, translated phrase, or the input string if no translation was found.