Bug 39061: Allow translation context in vue files
This patch adds the possibility to add translation context clues in vue
files.
Syntax is
$__p("context","term")
To test, see bug 39045.
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
2190d4020c
commit
6945fa70b8
|
|
@ -2,8 +2,13 @@ export const $__ = key => {
|
|||
return window["__"](key);
|
||||
};
|
||||
|
||||
export const $__p = (ctx, key) => {
|
||||
return window["__p"](ctx, key);
|
||||
};
|
||||
|
||||
export default {
|
||||
install: (app, options) => {
|
||||
app.config.globalProperties.$__ = $__;
|
||||
app.config.globalProperties.$__p = $__p;
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue