0.1.1 • Published 5 years ago
@qwant/qwant-maps-common v0.1.1
qwant-maps-common
Usage
Get the category name for a place
import { getPlaceCategoryName } from '@qwant/qwant-maps-common';
const { subclass } = place;
const categoryName = getPlaceCategoryName({ subclass }, "fr");Workflow in Erdapfel
By default, this package is installed and built automatically, as it's defined as a workspace in Erdapfel package.
The following operations are only useful if modifications are applied in this package.
Update language files
npm run i18n-scanAll languages files in ./i18n are updated with the translations keys that appear in ./src.
Rebuild the package
npm run buildor from the project root folder:
npm rebuild @qwant/qwant-maps-commonOutput files are generated in ./dist/.
Publish a new version
After you applied your modifications, and translations are up-to-date, you may publish a new release.
- Update the version number in "package.json" (or use npm version)
- Run
npm publish