Skip to content

Agile Book Chapter 16. Task K: Internationalization #1

Description

@RocketSH

Iteration K1: Selecting the Locale

  • set the default locale for our application and provided means for the user to select an alternative locale.

Iteration K2: Translating the Storefront

  • create translation files for text fields, currency amounts, errors, and model names.

Iteration K3: Translating Checkout

  • altered layouts and views to call out to the I18n module by way of the t() helper to translate textual portions of the interface.

  • Iteration K4: Adding a Locale Switcher

Playtime

  • Add a locale column to the products database and adjust the index view to select only the products that match the locale. Adjust the products view so that you can view, enter, and alter this new column. Enter a few products in each locale and test the resulting application.
  • Determine the current exchange rate between U.S. dollars and euros, and localize the currency display to display euros when ES_es is selected.
  • Translate the Order::PAYMENT_TYPES shown in the drop-down. You’ll need to keep the option value (which is sent to the server) the same. Change only what’s displayed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions