Bumps [i18next-cli](https://github.com/i18next/i18next-cli) from 1.87.0 to 1.88.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/i18next/i18next-cli/blob/main/CHANGELOG.md">i18next-cli's changelog</a>.</em></p> <blockquote> <h2>1.88.0</h2> <ul> <li>feat(lint, instrument): <code>acceptedAttributes</code> also takes an object that sets the translatable attributes per JSX element, e.g. <code>{ '*': ['!label'], Button: ['label'], 'Select.Option': ['hint'] }</code>: a name adds an attribute to the recommended list, <code>!name</code> removes it, <code>'*'</code> applies first. The same prop name can mean different things on different components (<code>label</code> is a button's text but a chart axis's data key). Set in <code>extract</code>, the rules apply to <code>lint</code> and now also to <code>instrument</code>; the array form is unchanged. See "Translatable attributes per element" in the README.</li> <li>fix(extract): when a <code>t()</code> or <code><Trans></code> key appears more than once, a default given in source (<code>t('key', 'Text')</code>, <code>defaults="..."</code>) now wins over <code><Trans></code> children, and both win over a fallback built from the key, whatever the order of files and calls; an empty default (<code>''</code>) beats only the key fallback, never text. An empty <code><Trans i18nKey="ns:key" /></code> no longer blocks the text of a later <code><Trans></code>. A default equal to the key now counts as a source default: <code>t('key', 'key')</code> keeps its value next to <code>t('key', 'Text')</code> (the first one wins), and <code>warnOnConflicts</code> flags the pair. <code>warnOnConflicts</code> no longer flags a plural key without a default. Plugins get where a default came from in the new optional <code>ExtractedKey.defaultValueSource</code>. (<a href="https://redirect.github.com/i18next/i18next-cli/pull/329">#329</a>, thanks <a href="https://github.com/skoeva"><code>@skoeva</code></a>).</li> <li>fix(extract): the primary language gets what i18next 27 and react-i18next 18 render for an empty default. <code>t('key', '')</code> and <code>t('key', { defaultValue: '' })</code> write <code>""</code> instead of the key, since i18next 27 returns <code>''</code> for them (plural forms included). <code><Trans defaults=""></code> still writes its children or the key, which is what react-i18next falls back to.</li> <li>docs: the Quick Start has a copyable one-prompt setup for coding agents (<code>npx i18next-cli localize --print-agent-prompt</code>).</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/i18next/i18next-cli/commit/0b15991a87d37493c5fa44201bbe72a4e8524646"><code>0b15991</code></a> 1.88.0</li> <li><a href="https://github.com/i18next/i18next-cli/commit/ba2870973bbd78c495af1c84d6bba215a3601f01"><code>ba28709</code></a> fix(extract): follow i18next 27 and react-i18next 18 for empty and dynamic Tr...</li> <li><a href="https://github.com/i18next/i18next-cli/commit/d496449daf98d1956f67fecb8a7c29cf22238b67"><code>d496449</code></a> docs: copyable one-prompt agent setup in the Quick Start; list where the prom...</li> <li><a href="https://github.com/i18next/i18next-cli/commit/2451085b5b3ba902c4639772397cb8fa64c09b93"><code>2451085</code></a> fix(extract): preserve source defaults during deduplication (<a href="https://redirect.github.com/i18next/i18next-cli/issues/329">#329</a>)</li> <li><a href="https://github.com/i18next/i18next-cli/commit/f797b6a7d948ffbf45d60a8d954ae4f22d1dfdf3"><code>f797b6a</code></a> feat(lint, instrument): set translatable attributes per JSX element</li> <li><a href="https://github.com/i18next/i18next-cli/commit/992d2666fea11b5ff08fe63a5e9fcb6cac80b19f"><code>992d266</code></a> docs: the status comment on optional plural forms describes the runtime's _ot...</li> <li>See full diff in <a href="https://github.com/i18next/i18next-cli/compare/v1.87.0...v1.88.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Maputnik
A free and open visual editor for the MapLibre GL styles targeted at developers and map designers.
Usage
- 🔗 Design your maps online at https://www.maplibre.org/maputnik/ (all in local storage)
- 🔗 Use the Maputnik CLI for local style development
- In a Docker, run this command and browse to http://localhost:8888, Ctrl+C to stop the server.
docker run -it --rm -p 8888:8000 ghcr.io/maplibre/maputnik:main
To see the CLI options (for example file watching or style serving) run:
docker run -it --rm -p 8888:8000 ghcr.io/maplibre/maputnik:main --help
You might need to mount a volume (-v) to be able to use these options.
Documentation
The documentation can be found in the Wiki. You are welcome to collaborate!
- 🔗 Study the Maputnik Wiki
- 📹 Design a map from Scratch https://youtu.be/XoDh0gEnBQo
Develop
Maputnik is written in typescript and is using React and MapLibre GL JS.
We ensure building and developing Maputnik works with the current active LTS Node.js version and above.
Check out our Internationalization guide for UI text related changes.
Getting Involved
Join the #maplibre or #maputnik slack channel at OSMUS: get an invite at https://slack.openstreetmap.us/ Read the the below guide in order to get familiar with how we do things around here.
Install the deps, start the dev server and open the web browser on http://localhost:8888/.
# install dependencies
npm install
# start dev server
npm run start
If you want Maputnik to be accessible externally use the --host option:
# start externally accessible dev server
npm run start -- --host 0.0.0.0
The build process will watch for changes to the filesystem, rebuild and autoreload the editor.
npm run build
Lint the JavaScript code.
# run linter
npm run lint
npm run lint-css
npm run sort-styles
Tests
End-to-end tests
For E2E testing we use Playwright. The tests live in the e2e directory and drive the app through the MaputnikDriver page object.
The first time you run the tests, install the browser:
npx playwright install chromium
Playwright automatically starts the dev server (npm run start) for you, so you can just run:
npm run test
Some useful options:
# see the tests run in a headed browser
npm run test -- --headed
# run a single spec / filter by title
npm run test -- e2e/map.spec.ts
npm run test -- -g "zoom level"
# open the interactive UI mode
npx playwright test --ui
Running the E2E tests also produces a code-coverage report in coverage/ (collected via istanbul instrumentation of the dev server).
Unit & component tests
Unit tests and component tests run with Vitest; component tests (*.browser.test.tsx) use Vitest's browser mode with the Playwright provider.
npm run test-unit
Release process
- Review
CHANGELOG.md- Double-check that all changes included in the release are appropriately documented.
- To-be-released changes should be under the "main" header.
- Commit any final changes to the changelog.
- Run Create bump version PR by manual workflow dispatch and set the version number in the input. This will create a PR that changes the changelog and
package.jsonfile to review and merge. - Once merged, an automatic process will kick in and creates a GitHub release and uploads release assets.
Sponsors
Thanks to the supporters of the Kickstarter campaign. This project would not be possible without these commercial and individual sponsors. You can see this file's history for previous sponsors of the original Maputnik repo. Read more about the MapLibre Sponsorship Program at https://maplibre.org/sponsors/.
License
Maputnik is licensed under MIT and is Copyright (c) Lukas Martinelli and Maplibre contributors. As contributor please take extra care of not violating any Mapbox trademarks. Do not get inspired by other map studios and make your own decisions for a good style editor.
