# Localization - Alexa Building Blocks

# ax.localize()

A block to localize the building blocks in your skill, which you can add anywhere in your block tree.

Localize generated artifacts:

ax.localize([Locale.en_US, Locale.en_CA])
    // now, info block is localized and
    // will produce artifacts in both en-US and en-CA locales.
      .name("Hello bot")

Localize runtime outputs

ax.localize([Locale.en_US, Locale.en_CA])
  .block(ax.say("hello!")) // will be considered only if input locale matches en-US or en-CA

It also works on ax.ask() and ax.directive() building blocks as well.