Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features/add helpers #8

Closed
wants to merge 14 commits into from
Closed

Features/add helpers #8

wants to merge 14 commits into from

Conversation

Gandhi11
Copy link
Contributor

Wait for #7 to be merged

Fix #5 and #6

@Gandhi11 Gandhi11 requested a review from xel1045 December 13, 2018 19:46
@Gandhi11 Gandhi11 force-pushed the features/add-helpers branch 5 times, most recently from b6750af to f108e39 Compare December 14, 2018 16:02
Copy link

@martinblanchette martinblanchette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check at my comments below.

}

if (!isset($this->getLocalesAvailable()[$locale])) {
return '';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it a better idea to fallback on the name using getLocaleName method?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed


public function isLtr()
{
return LaravelTranslation::getCurrentLocaleDirection() === "rtl";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use single quote notation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed

DIRECTORY_SEPARATOR . 'views';
}

private function bootBladeExtensions()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏 Separate nested foreach in order to make the code readable and much clean.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed

@Gandhi11 Gandhi11 force-pushed the features/add-helpers branch from f358e56 to fd9672f Compare October 8, 2019 18:59
@Gandhi11 Gandhi11 closed this Jan 8, 2020
@Gandhi11 Gandhi11 deleted the features/add-helpers branch January 8, 2020 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add helper to retrieve text direction
2 participants