mirror of
https://github.com/openstreetmap/id-tagging-schema.git
synced 2025-10-26 04:13:50 +01:00
add npm run dist translations command
and don't purge translations on `npm run dist`
This commit is contained in:
parent
a591db7434
commit
6fc8f4dfe3
2 changed files with 12 additions and 4 deletions
|
|
@ -1,5 +1,15 @@
|
|||
import schemaBuilder from '@ideditor/schema-builder';
|
||||
|
||||
let translationOptions = {};
|
||||
if (process.argv.includes('translations')) {
|
||||
translationOptions = {
|
||||
translOrgId: 'openstreetmap',
|
||||
translProjectId: 'id-editor',
|
||||
translResourceIds: ['presets'],
|
||||
translReviewedOnly: ['vi']
|
||||
};
|
||||
}
|
||||
|
||||
schemaBuilder.buildDist({
|
||||
taginfoProjectInfo: {
|
||||
name: 'iD Tagging Schema',
|
||||
|
|
@ -9,8 +19,5 @@ schemaBuilder.buildDist({
|
|||
contact_name: 'Martin Raifer',
|
||||
contact_email: 'martin@raifer.tech'
|
||||
},
|
||||
translOrgId: 'openstreetmap',
|
||||
translProjectId: 'id-editor',
|
||||
translResourceIds: ['presets'],
|
||||
translReviewedOnly: ['vi']
|
||||
...translationOptions
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue