$translate

Introduction

$translate(string stringId, Object args = {}) : string

The $translate instance method provides access to translations from the internationalization library. It accepts the identifier for a string resource and an object containing key-value pairs representing variables to replace in the processed string.

The translations are performed based on the currently set active locale.

Last updated