mirror of https://github.com/VueTubeApp/VueTube
13 lines
298 B
JavaScript
13 lines
298 B
JavaScript
function module(text) {
|
|
const selectedLanguage = localStorage.getItem("language") || "english";
|
|
const languagePack = require('./languages/'+selectedLanguage);
|
|
|
|
if (!text) return languagePack;
|
|
return languagePack[text];
|
|
|
|
}
|
|
|
|
export default ({ app }, inject) => {
|
|
inject("lang", module);
|
|
};
|