Command Palette

Search for a command to run...

Mises à jour et Journal des Modifications

Suivez tous les changements et améliorations de LocaleDB

Version Actuelle:v1.0.1

✨ Features

    📦 npm packages on the home page ([PackagesSection](src/components/home/packages-section.tsx))

    • **Left:** `@localedb/core · @localedb/cli` label, title, short description, `npm install @localedb/core`, and two buttons: **Documentation** (to `/docs#packages`) and **npm** (to npmjs.com).
    • **Right:** a short `getCountry("TR")` example and a one-line CLI command, always left-to-right, also in Arabic.
    • All text comes from the existing `docs.packages` keys, so the section is translated in every locale.

    🧭 "npm & CLI" in the Project menu ([navigation.ts](src/config/navigation.ts))

    • --

    🐛 Bug Fixes

      Search engine indexing (canonical and hreflang)

      • **Canonical URLs had no locale prefix.** Every translation (for example `/es/updates`) pointed its canonical at the English page, so Google treated translations as duplicates and left them unindexed. Country and currency detail pages had no canonical at all and inherited the home page's.
      • New [`localeAlternates()`](src/lib/seo.ts) gives every page its own canonical plus hreflang links for all 11 locales and `x-default`. The layout no longer sets a canonical.
      • **Redirects** ([next.config.ts](next.config.ts)) for URLs Google still crawls: `/api` and `/<locale>/api` go to the docs (temporary, until the public API exists); `/countries/UNK` goes to `/countries/XK` (Kosovo).
      • **`/og-image`** is no longer rewritten by the locale middleware, and no longer fails reading its background image (Node's fetch cannot read `file://` URLs).

      Hero date format

      • --

      💅 UI / UX Polish

      • **Footer:** the brand column now carries a single descriptive paragraph (what LocaleDB covers, where the data comes from, how to use it), translated in all 11 languages. The creator name links to [ozkurkculer.com](https://ozkurkculer.com).
      • **Export builder:** removed the "Setup progress" bar; the ✓ marks on each step already show progress.
      • --

      🌐 Internationalization

      • `docs.packages` (title, description, beta note, library and CLI descriptions, all six command descriptions, license note) translated into Arabic, Bengali, Chinese, French, Hindi, Japanese, Portuguese, Russian and Spanish. It was English-only outside Turkish.
      • New `footer.description` in all 11 locales.
      • --

      🔁 Commits

      • 1.0.0: SEO canonical/hreflang, redirects, og-image (`7e1c8ed`)
      • feat: enhance footer with dataset overview and installation instructions (`8987de6`)
      • feat: translate package descriptions and commands in multiple languages; add PackagesSection component to home page (`b45053e`)
      • feat: update footer descriptions for localization in multiple languages (`28f0f67`)
      • --

      📊 File Changes

      src/lib/seo.ts                                  | NEW: canonical + hreflang helper
       src/app/[locale]/**/page.tsx                    | locale-aware alternates (19 pages)
       src/app/[locale]/layout.tsx                     | no inherited canonical
       next.config.ts                                  | /api and /countries/UNK redirects
       src/middleware.ts, src/app/og-image/route.tsx   | og-image routing and image loading
       src/components/home/packages-section.tsx        | NEW
       src/app/[locale]/page.tsx                       | packages section on the home page
       src/components/home/hero.tsx                    | dateFormats.short in data boxes
       src/config/navigation.ts                        | npm & CLI menu entry
       src/config/site.ts                              | npm and personal site links
       src/components/layout/footer.tsx                | descriptive text, linked creator name
       src/components/export/export-builder-client.tsx | progress bar removed
       messages/{11 locales}.json                      | docs.packages, footer.description
       package.json                                    | version 1.0.1
       updates/v1.0.1.md                               | this file