Supported File Types (Strings)

.PHP - Laravel/F3/Kohana Array (Strings)

Content is machine translated from English by Phrase Language AI.

File Extensions


API Extension






Plural forms support


Description support


Laravel uses plain PHP arrays for its locale message files. An array is an ordered list or collection of items. The items of the array can be of any type in PHP: a number, a string, an object, another array, etc. Strings are often used as values in locale message arrays. Laravel uses associative arrays containing key-value pairs; it also has one anonymous array per message file with the file returning the array.

Plurals in Laravel Arrays

Use caution when working with plurals. The editor recognizes simple plural syntax, e.g. “Zero things|One thing|Many things” but will not recognize complex plural syntax with count and range specifiers. For complex plurals, use newlines in plural strings to help translators.



return [

    "hello" => "Welcome to my new site",


Code Sample


return [

    "hello" => "Welcome to my new site",

    // Supported in Phrase web editor ??

    "Simple_plural" => "Zero things|One thing|Many things",

        // Not supported in Phrase web editor ??, try to use new

    // lines to help translators.

    "complex_plural" => "

        {0} Zero things

        |{1} One thing

        |[2,*] Multiple things


Was this article helpful?

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question, submit a request to our Support team.
Thank you for your feedback.