Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaplet committed Feb 14, 2019
1 parent dbb7654 commit 2aa3553
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions readme.md
@@ -0,0 +1,25 @@
# Lang Module
Zajištuje jazykové mutace webu - překlady pro frontend.

## Příklady použití
**PHP Komponenta:**

```
// $this->translate - Wakers\LangModule\Translator\Translate (načteno z DI)
$this->translate->translate('Your name is: %name%', ['name' => $name]);
```

**Latte Šablona:**
```
{translate 'Your name is: %name%', ['name' => $name]}
```

## Console
**Přidání jazyka**
```
$ console wakers:lang-create <lang>
```

## Komponenty

1. `Frontend\SyystemModal` - Výpis editovatelných (systémových) překladů překladů.

0 comments on commit 2aa3553

Please sign in to comment.