Skip to content
This repository has been archived by the owner. It is now read-only.

Add retriving default locale for translatedIn method #148

Merged
merged 1 commit into from Oct 17, 2015

Conversation

@Pyton
Copy link

commented Sep 16, 2015

Set $locale default null and get current system locale

$elems = Model::translatedIn()->get()

return records with current locale translation .

@dimsav

This comment has been minimized.

Copy link
Owner

commented Oct 15, 2015

Hmm.. I don't like the syntax very much. What if create a new scope using the existing one?

$elems = Model::translated()->get();

@dimsav dimsav added this to the v5.2 milestone Oct 15, 2015

@dimsav

This comment has been minimized.

Copy link
Owner

commented Oct 17, 2015

Changed my mind, merging this. Thanks!

dimsav added a commit that referenced this pull request Oct 17, 2015

Merge pull request #148 from Pyton/master
Add retriving default locale for translatedIn method

@dimsav dimsav merged commit 8c075ae into dimsav:master Oct 17, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants
You can’t perform that action at this time.