Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Releases: vinkla/laravel-translator

Add locale key to translate method

28 Oct 11:37
Compare
Choose a tag to compare

This version features a way to specify the locale on the translate method. Example below.

// Setting the the current locale to English.
App::setLocale('en');

 // Returns the article title translated in Swedish.
$article->translate('sv')->title;

// Uses the current locale and returns the English translation.
$article->title;

Add fallback locale support

20 Oct 11:07
Compare
Choose a tag to compare

Add support to fetch a default translation from the database. Read more in #8.

Add getters and setters

15 Oct 08:22
Compare
Choose a tag to compare

Within this release it is now possible to attache the translated attributes to the base model instance. This makes it possible to fetch the translation with $post->title instead of fetching the attribute with the $post->translate() method. Though, both ways still works.

Add one to many relation

14 Oct 12:00
Compare
Choose a tag to compare

It is now possible to fetch all translations with $post->translations.

Add configuration files

28 Sep 12:38
Compare
Choose a tag to compare

This version is shipped with configuration files and a new Laravel service provider.

First initial version

25 Sep 08:13
Compare
Choose a tag to compare
First initial version Pre-release
Pre-release

First initial version. Please NOTE that this is work in progress. Documentation is coming soon…