open-index/open-npm huggingface dataset:
npm package: @qwant/qwant-maps-common
Description: Common utilities for Qwant Maps, Instant Answers, etc.
Author: Qwant
Latest version: 0.1.1

# qwant-maps-common

## Usage

### Get the category name for a place

```js
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-scan
```

All languages files in `./i18n` are updated with the translations keys that appear in `./src`.


### Rebuild the package

```
npm run build
```

or from the project root folder:
```
npm rebuild @qwant/qwant-maps-common
```

Output 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](https://docs.npmjs.com/cli/v7/commands/npm-version))
* Run `npm publish`