generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0ccdd8
commit 8230e32
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: 'Translating' | ||
--- | ||
|
||
Telegraph interacts with Telegram users is multiple ways, in order to offer a better user experience, it's responses can be localized in the user's language: | ||
|
||
```php | ||
//in webhook | ||
|
||
App::setLocale($this->message->from()->languageCode()); | ||
|
||
$this->reply(__('Hello')); // Ciao! | ||
|
||
``` | ||
|
||
Anyone can contribute to the supported languages by creating a folder in `resources/lang`, named after the translated language code and adding his own translation files (better if taken from the `resources/lang/en` folder) | ||
|
||
## Translation Credits | ||
|
||
- Italian [def:studio team](https://github.com/defstudio) | ||
- Arabic [Moayed Alhagy](https://github.com/moayedalhagy) | ||
- Dutch [Joris Drenth](https://github.com/jorisdrenth) | ||
- Portuguese [Rafael](https://github.com/rjmo) | ||
- Russian [Andrey Helldar](https://github.com/andrey-helldar) | ||
- Spanish [Tievo](https://github.com/Tievodj) | ||
- Ukrainian [ihorrudnix](https://github.com/ihorrudnix) |
File renamed without changes.
File renamed without changes.