microsoft / vscode-nls

npm module to support externalization and localization of VSCode extensions.
Other
92 stars 31 forks source link

Missing usage document #18

Open axetroy opened 6 years ago

axetroy commented 6 years ago

I try to translate my extension.

Found this package, then follow the example

try and try again. but it didn't work.

Is there an easier way to define i18n?

Missing Document:

Q: What it gulp doing?

A: no answer

Q: When should I run gulp task? Is it automatic?

A: no answer

Q: What should I write in package.nls.json

A: no answer

Q: What's the relationship between package.nls.json and i18n/{lang}/package.i18n.json

A: no answer

Q: Why localize receive tow argument (key: string, message: string, ...args: any[]): string;?

...

luozhihua commented 6 years ago

I have the same question, I've read countless documents and i18n-sample, and I still don't know what to do.

axetroy commented 6 years ago

I am sorry.

Is it only me who thinks it is hard to use?

Am I too stupid?

felixhao28 commented 5 years ago

I gave up on this too.

pikadun commented 4 years ago

Is there more detailed documentation?

axetroy commented 4 years ago

update:

I gave up a long time ago.

So I wrote another library. https://github.com/axetroy/vscode-nls-i18n

pikadun commented 4 years ago

I will write a guide for it