layout: add Locale to Context

This commit adds a system.Locale to the layout.Context,
providing an easy means to plumb language information
throughout an application.

References: https://todo.sr.ht/~eliasnaur/gio/146
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
Chris Waldon
2022-03-17 10:03:52 -04:00
committed by Elias Naur
parent 512900c9b1
commit db82d12372
+5
View File
@@ -27,6 +27,11 @@ type Context struct {
// Now is the animation time.
Now time.Time
// Locale provides information on the system's language preferences.
// BUG(whereswaldon): this field is not currently populated automatically.
// Interested users must look up and populate these values manually.
Locale system.Locale
*op.Ops
}