tree: c9db85bd0bdd9c13bad3d475034958d342df9878 [path history] [tgz]
  1. meta/
  2. BUILD.gn
  3. intl_client_demo_view.cc
  4. intl_client_demo_view.h
  5. main.cc
  6. OWNERS
  7. README.md
examples/ui/intl_client_demo/README.md

IntlClientDemo

This is a simple example of a visual mod that is a client of fuchsia.intl.PropertyProvider, whose Locale can be set at launch and while the mod is running.

intl_client_demo renders its view using Skia. Currently, it simply displays the provided locale ID in a large font in the middle of the view.

Instructions

  1. Build a Fuchsia workstation target with kitchen_sink.

    Example:

    $ fx set-petal topaz
    $ fx set workstation.chromebook-x64 --with //bundles:kitchen_sink
    $ fx serve
    
  2. Boot the device.

  3. Start a new session:

    $ fx shell sessionctl login_guest
    
  4. Launch the module:

    $ fx shell sessionctl add_mod intl_client_demo