> generate plugin annotation from JSON for RPG Maker MV and RPG Maker MZ.
npm install @rutan/rpgmaker-plugin-annotation> generate plugin annotation from JSON for RPG Maker MV and RPG Maker MZ.
$ npm install @rutan/rpgmaker-plugin-annotation
`Usage
$3
#### Generate annotation file
`
$ rmpab config.json --languages en,ja --defaultLanguage en --out ./result.txt
`see
test/fixture/sample.json for an example config.json$3
#### sanitize
`typescript
import { sanitize } from '@rutan/rpgmaker-plugin-annotation';const config = {
target: ['MZ'],
title: {
en: "SamplePlugin",
ja: "サンプルプラグイン"
},
// more config ...
};
sanitize(config);
`#### generateAnnotation
`typescript
import { generateAnnotation } from '@rutan/rpgmaker-plugin-annotation';const config = {
target: ['MZ'],
title: {
en: "SamplePlugin",
ja: "サンプルプラグイン"
},
// more config ...
};
generateAnnotation(config, {
languages: ['en', 'ja'],
defaultLanguage: 'en'
});
``