public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Trace
data/web/inc/lib/vendor/symfony/translation/README.md
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
Translation Component
2
=====================
4
The Translation component provides tools to internationalize your application.
6
Getting Started
7
---------------
9
```
10
$ composer require symfony/translation
11
```
13
```php
14
use Symfony\Component\Translation\Translator;
15
use Symfony\Component\Translation\Loader\ArrayLoader;
17
$translator = new Translator('fr_FR');
18
$translator->addLoader('array', new ArrayLoader());
19
$translator->addResource('array', [
20
'Hello World!' => 'Bonjour !',
21
], 'fr_FR');
23
echo $translator->trans('Hello World!'); // outputs « Bonjour ! »
24
```
26
Sponsor
27
-------
29
Help Symfony by [sponsoring][1] its development!
31
Resources
32
---------
34
* [Documentation](https://symfony.com/doc/current/translation.html)
35
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
36
* [Report issues](https://github.com/symfony/symfony/issues) and
37
[send Pull Requests](https://github.com/symfony/symfony/pulls)
38
in the [main Symfony repository](https://github.com/symfony/symfony)
40
[1]: https://symfony.com/sponsor