Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@(message: String, style: String = "scala")(implicit messages: MessagesProvider)
@defining(play.core.PlayVersion.current) { version =>
<section>
<div class="wrapper">
@if(messages.messages.lang.language.equals("en")) {
<a class = "button" href="@routes.MySupportController.homePageInFrench()">fr</a>
} else {
<a class = "button" href="@routes.MySupportController.homePageWithDefaultLang()">en</a>
}
</div>
</section>
<div id="content" class="wrapper doc">
<article>
<h1>@message</h1>
<h2>@messages.messages("home.title")</h2>
</article>
</div>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment