Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Add retriving default locale for translatedIn method #148

Merged
merged 1 commit into from
Oct 17, 2015
Merged

Add retriving default locale for translatedIn method #148

merged 1 commit into from
Oct 17, 2015

Conversation

Pyton
Copy link

@Pyton Pyton commented Sep 16, 2015

Set $locale default null and get current system locale

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

return records with current locale translation .

@dimsav
Copy link
Owner

dimsav 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
Copy link
Owner

dimsav commented Oct 17, 2015

Changed my mind, merging this. Thanks!

dimsav added a commit that referenced this pull request Oct 17, 2015
Add retriving default locale for translatedIn method
@dimsav dimsav merged commit 8c075ae into dimsav:master Oct 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants