Skip to content

Commit

Permalink
Fix docs (#140)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergei Predvoditelev <[email protected]>
  • Loading branch information
luizcmarin and vjik authored May 22, 2024
1 parent 5242368 commit 471a7c4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center">
<a href="https://github.com/yiisoft" target="_blank">
<img src="https://yiisoft.github.io/docs/images/yii_logo.svg" height="100px">
<img src="https://yiisoft.github.io/docs/images/yii_logo.svg" height="100px" alt="Yii">
</a>
<h1 align="center">Yii Message Translator</h1>
<br>
Expand Down Expand Up @@ -37,9 +37,9 @@ PHP arrays or GNU gettext. Message formatters provide extra syntax that is recog

#### Message sources

* [translator-message-php](https://github.com/yiisoft/translator-message-php) - PHP file message storage.
* [translator-message-db](https://github.com/yiisoft/translator-message-db) - Database message storage.
* [translator-message-gettext](https://github.com/yiisoft/translator-message-gettext) - gettext message storage.
- [translator-message-php](https://github.com/yiisoft/translator-message-php) - PHP file message storage.
- [translator-message-db](https://github.com/yiisoft/translator-message-db) - Database message storage.
- [translator-message-gettext](https://github.com/yiisoft/translator-message-gettext) - gettext message storage.

## Built-in message formatters

Expand Down Expand Up @@ -277,14 +277,14 @@ $translator->setLocale($newDefaultLocale);
echo $translator->getLocale();
```

### Get a new Translator instance with a locale to be used by default in case locale isn't specified explicitly.
### Get a new Translator instance with a locale to be used by default in case locale isn't specified explicitly

```php
$newDefaultLocale = 'de-DE';
echo $translator->withLocale($newDefaultLocale);
```

### Get a new Translator instance with a category to be used by default in case category isn't specified explicitly.
### Get a new Translator instance with a category to be used by default in case category isn't specified explicitly

```php
$newDefaultCategoryId = 'module2';
Expand Down
14 changes: 12 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,22 @@
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/yiisoft/translator/issues?state=open",
"source": "https://github.com/yiisoft/translator",
"forum": "https://www.yiiframework.com/forum/",
"wiki": "https://www.yiiframework.com/wiki/",
"irc": "ircs://irc.libera.chat:6697/yii",
"chat": "https://t.me/yii3en",
"source": "https://github.com/yiisoft/translator"
"chat": "https://t.me/yii3en"
},
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/yiisoft"
},
{
"type": "github",
"url": "https://github.com/sponsors/yiisoft"
}
],
"require": {
"php": "^8.0",
"psr/event-dispatcher": "1.0.0",
Expand Down

0 comments on commit 471a7c4

Please sign in to comment.