mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2026-05-25 01:00:13 -04:00
23 lines
409 B
JavaScript
23 lines
409 B
JavaScript
function sn(env) {
|
|
env.translator.add({
|
|
id: 'hello',
|
|
locale: {
|
|
'sv-SE': 'Hej {0}!',
|
|
},
|
|
});
|
|
return {
|
|
component: {
|
|
mounted(element) {
|
|
element.textContent = `${env.translator.get('hello', ['motor'])}`; // eslint-disable-line no-param-reassign
|
|
},
|
|
},
|
|
};
|
|
}
|
|
|
|
export default function fixture() {
|
|
return {
|
|
type: 'sn-locale',
|
|
load: async () => sn,
|
|
};
|
|
}
|