mini\I18n\Translatable class

Documentation

Translatable string class that implements Stringable

Stores the source text, variables, and calling file context for future translation. Currently acts as a pass-through, returning the original text with variable substitution.

Inheritance

Implements: Stringable

Properties (3)

private string $sourceText
private array $vars
private string $sourceFile

Methods (7)

Documentation missing

Convert to string using Translator from container

Get the file that called t() using debug_backtrace()

Replace {variable_name} placeholders with values from vars array

Get source text (for debugging/development)

Get source file (for debugging/development)

Get variables (for debugging/development)

Source

src/I18n/Translatable.php:13-115