Activity 1

Add the locale to the products column, 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.

Hint: In the store controller, set @products to Product.where(locale: I18n.locale).order(:title).

Discuss

Activity 2

Determine the current exchange rate between U.S. dollars and euros, and localize the currency display to display euros when ES_es is selected.

Discuss

Activity 3

Translate the Order::PAYMENT_TYPES shown in the dropdown. You will need to keep the option value (which is sent to the server) the same. Only change what is displayed.

Discuss


Other Discussions