Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Localized Views #723

Closed
stanislas-m opened this issue Oct 28, 2017 · 3 comments
Closed

Localized Views #723

stanislas-m opened this issue Oct 28, 2017 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@stanislas-m
Copy link
Member

We already have a way to handle translations for pieces in a template. Sometimes, it's better to create a specific page for a language (for instance, when a page is static). A good example is gobuffalo.io: all markdown documentation pages will be difficult to maintain if we extract all strings, and some samples have a better value if they are translated too.

Localized Views

Rails supports this use case like that: http://guides.rubyonrails.org/action_view_overview.html#localized-views. Using a file suffix, the developer can provide a version for a specific language, or use a non-suffixed version as a fallback.

@stanislas-m stanislas-m added enhancement New feature or request Proposal labels Oct 28, 2017
@paganotoni
Copy link
Member

@stanislas-m I like this idea!! could we initially build it outside the framework (in gobuffalo) and then move it inside buffalo?

@markbates
Copy link
Member

I think this is a great idea. It shouldn't be too hard to implement either. @stanislas-m would you like to take lead on this one?

@markbates markbates added this to the 0.10.1 milestone Oct 30, 2017
@stanislas-m
Copy link
Member Author

@markbates No problem. :)

@stanislas-m stanislas-m self-assigned this Oct 30, 2017
@markbates markbates modified the milestones: 0.10.1, 0.10.2 Nov 7, 2017
stanislas-m added a commit that referenced this issue Nov 23, 2017
markbates added a commit that referenced this issue Nov 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants