Skip to content
Randall Knutson edited this page Mar 15, 2018 · 1 revision

You can translate your {{ site.formio }} forms by wrapping Angular-Translate in your application.

There are a two ways of achieving this.

  1. You can call
$translateProvider.translation('en', {
  'Original String': 'Translated String'
});

This will register a new language to the translation provider. The Original String is the string within the form that you want to translate. It could be the field label, placeholder or dropdown value. You can include multiple strings in the language definition.

  1. You can include the translations in external files with https://www.npmjs.com/package/angular-translate-loader-static-files or other loaders.

From then on, use angular-translates language switching capability and the form will translate itself.

Clone this wiki locally