groue / GRMustache.swift

Flexible Mustache templates for Swift
http://mustache.github.com/
MIT License
601 stars 154 forks source link

Localization Customization #37

Open groue opened 8 years ago

groue commented 8 years ago

The Localizer filter brings localization to your mustache templates:

let template = ...
template.register(StandardLibrary.Localizer(), forKey: "localize")

It can localize:

As it is today, Localizer uses NSLocalizedString. Two areas of improvements are:

groue commented 8 years ago

CC @vadimeisenbergibm since this topic may be of some interest for Kitura

vadimeisenbergibm commented 7 years ago

@groue Until now we did not receive any localization requirements, so I have no opinion on this topic.