forked from joejulian/gio
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user