vube / i18n

golang package for basic i18n features, including message translation and number formatting
MIT License
66 stars 20 forks source link

Add method to Translator to return dereferenced Rules #8

Closed deankarn closed 9 years ago

deankarn commented 9 years ago

Add method to Translator to return dereferenced Rules keeping thread safety intact. It is less efficient than exposing as a pointer though.

example usage:

translator.Rules().DateTime.FormatNames.Days.Wide.Fri

issue-#6

james-maloney commented 9 years ago

@joeybloggs thanks for the pull request!