pearone / vite-plugin-monaco-editor-nls

vite plugin Monaco editor localize
29 stars 19 forks source link

2.0.2版本的index.d.ts不对 #6

Open zqy233 opened 2 years ago

zqy233 commented 2 years ago

2.0.2版本的index.d.ts类型是

export interface Options {
    locale: Languages;
}

看example中正确的类型应该是

export interface Options {
    locale: Languages;
    localeData?: Record<string, any>;
}
zqy233 commented 2 years ago

看example中正确的类型应该是

而且index.js好像也有点问题,会报nls.getConfiguredDefaultLocale is not a function,后来我直接用example中打包的index.js,就可以正常汉化了

pearone commented 2 years ago

我修一修

GeZiOrk commented 2 years ago

如果可以 其实可以把内置的.json都换成最新的 这样的话 就不用去vscode-loc里面重新导入一份了