Skip to content

Commit 958f667

Browse files
committed
FIO-9618 Update call to i18n t()
- To match new fn signature in core
1 parent 6e9bf76 commit 958f667

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Element.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,11 +435,12 @@ export default class Element {
435435
/**
436436
* Translate a text using the i18n system.
437437
* @param {string|Array<string>} text - The i18n identifier.
438+
* @param {any} data - contextual data object containing data, component, row, etc.
438439
* @param {...any} args - The arguments to pass to the i18n translation.
439440
* @returns {string} - The translated text.
440441
*/
441-
t(text, ...args) {
442-
return this.i18next ? this.i18next.t(text, ...args): text;
442+
t(text, data, ...args) {
443+
return this.i18next ? this.i18next.t(text, data, ...args): text;
443444
}
444445

445446
/**

0 commit comments

Comments
 (0)