15 Commits
Author SHA1 Message Date
Vishal Kumar SinghandBassel Kanso 6e7e28306c fix(admin): use ISO 639-1 da for Danish admin locale (#26322)
* fix(admin): use ISO 639-1 da for Danish admin locale

Rename admin translation bundles from dk to da, normalize legacy dk in
app config, custom translation keys, localStorage, and stored user language.

Closes #25761

* fix(admin): add dk json fallback and admin user language migration

Register internal migration admin::migrate-prefered-language-dk-to-da to
rewrite admin_users.prefered_language from dk to da.

Export importLocaleJsonWithLegacyDkFallback from strapi-admin and use it in
core loadAdminTrads plus every bundled plugin registerTrads so third-party
plugins that still ship only dk.json keep loading when the UI locale is da.

Add @strapi/admin devDependency where the helper is imported from JS or
packages that did not already list it.

Refs #26322

* fix(types): add importLocaleJson to strapi-admin registerTrads typing

* fix(admin): expand plugin locale list and merge under canonical codes

Moves legacy dk handling into StrapiApp.loadTrads (flatMap + uniq + normalize merge) so registerTrads keeps a stable API without importLocaleJson. Core admin bundles use try/catch dynamic imports per locale code.

* fix(admin): route plugin translations through importLocaleJson

Pass StrapiApp.importLocaleJson into registerTrads so core and third-party plugins share legacy locale JSON fallback (da -> dk) and one-shot deprecation warnings. Relax admin test console.warn filter for those messages. Refs #26322.

* fix(admin): keep plugin locale fallback internal

---------

Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
2026-05-29 18:26:00 +03:00
1dd851498a feat(admin): add documentation helper link in HeaderLayout (revival of #23328) (#26422)
* feat(admin): add documentation helper link in HeaderLayout

Revival of #23328 (by @Mcastres), rebased on develop with review feedback
addressed and additional improvements:

- Replace hand-rolled find with react-router matchRoutes for proper path
  matching and specificity ranking
- Update doc URLs to canonical docs.strapi.io paths (drop redirected
  /user-docs/* and /dev-docs/* entries)
- Restore section anchors that were lost during doc-site reorganization
  (#providers, #email-templates, #advanced-settings, profile, rbac)
- Align array path entries with actual registered admin routes (rename
  /plugins/content-type-builder, /plugins/content-releases, settings
  prefix for purchase-content-releases and list-plugins, drop dead
  /marketplace external link)
- Add opt-out flag admin.flags.docLinks for white-label deployments
  (requested by @derrickmehaffy)
- Memoize getMatchingDocLink result per pathname
- Place doc link button next to primary action via gap on parent Flex
  (per @remidej review)
- Drop async from getMatchingDocLink, derive docLink synchronously from
  pathname (per @remidej review)

Closes #23328

Co-authored-by: Maxime Castres <17828745+Mcastres@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* chore(admin): move DocLink type to getMatchingDocLink module

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(admin): add docLinks flag to EE Window strapi type

The EE admin custom.d.ts redeclares window.strapi.flags and was missing
the docLinks property, causing test:ts:front to fail with TS2339 in
HeaderLayout.tsx.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* test: add getMachingDocLink tests

---------

Co-authored-by: Maxime Castres <17828745+Mcastres@users.noreply.github.com>
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2026-05-26 09:59:00 +02:00
Andrei L 2102695c88 fix(ts): ignore generated .strapi folder (#25086) 2026-02-11 09:10:20 +00:00
Andrei L deacf1e97f feat(strapi/create): type strapi configs (#21859) 2026-02-03 15:50:11 +00:00
Adrien L 90d110d128 fix: optimize images (#25047) 2025-12-22 10:01:52 +01:00
Bassel Kanso 5989d3c7be enhancement: make api tokens viewable (#23439) 2025-05-05 11:06:33 +03:00
Derrick Mehaffy 9f9c564efc fix: remove additional upgrade aliases 2025-02-14 13:32:35 -08:00
Derrick Mehaffy ff62e5d81e fix: remove list aliases 2025-02-14 13:30:07 -08:00
Derrick Mehaffy 7f8710b10e enhancement: add additional package scripts to default templates 2025-02-12 15:15:48 -08:00
Alexandre Bodin 30e5d19d03 enhancement: use script instead of bootstrap for example seed 2024-09-16 18:11:03 +02:00
marcoautiero 006b5570c8 fix: example data, media files uniqueness 2024-09-13 12:33:19 +02:00
Alexandre Bodin 313d2477b8 fix: template vite config example 2024-09-10 12:14:49 +02:00
Alexandre Bodin 626cf5324f chore: fix gitignore 2024-09-05 17:40:59 +02:00
Alexandre Bodin da85533897 chore: use write language in templates 2024-08-28 16:17:08 +02:00
Alexandre Bodin c641525963 chore(create-strapi-app): implement new templates system 2024-08-26 14:57:45 +02:00