Skip to content

Commit 034f9dd

Browse files
committed
docs: Example code with command
1 parent 624ba01 commit 034f9dd

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

  • user_guide_src/source/outgoing/localization
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
// Controllers/Translation/Lang.php
4+
$message = lang('Text.info.success');
5+
$message2 = lang('Text.paragraph');
6+
7+
// Save in Language/en/Text.php
8+
return [
9+
'info' => [
10+
'success' => 'Text.info.success',
11+
],
12+
'paragraph' => 'Text.paragraph',
13+
];

0 commit comments

Comments
 (0)