You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ``addFlashMessage()`` method accepts three parameters:
22
23
23
-
The first parameter is the translation key, the second is an array of parameters for the translation, and the third is the message type (default is ``notice``).
24
+
* **Translation key**: the unique string identifier from your ``.ini`` file. For example, ``mautic.core.notice.created``.
25
+
* **Parameters**: an array of values that replace placeholders - such as ``%name%`` - within the translation string.
26
+
* **Message type**: the type of message to display. The default is ``notice``.
24
27
25
-
Frontend (JavaScript) implementation
28
+
Frontend implementation - JavaScript
26
29
************************************
27
30
28
-
Add your translation strings to ``{bundle}/Translations/en_US/javascript.ini``:
31
+
#. Add translation strings to ``{bundle}/Translations/en_US/flashes.ini``:
0 commit comments