A Vite plugin to load NSIS language files
npm install -D @nsis/vite-plugin-nlf
// vite.config.js
import { defineConfig } from 'vite';
import nlf from '@nsis/vite-plugin-nlf';
export default defineConfig({
plugins: [
nlf()
]
});
// example.js
import English from './Contrib/Language files/English.nlf';
console.log(`The ID for English is ${English.id}`);
This work is licensed under The MIT License