Skip to content

Incorrect language format in global lang attribute (en_GB not en-GB) #8697

@amercader

Description

@amercader

Discussed in #8663

Originally posted by daveytyke February 11, 2025
Hi all,

I'm doing some accessibility work on our CKAN instance and we're getting an error on the language setup.

in our .ini file we have set -

ckan.locale_default = en_GB

This results in each web page having the following set up -

However, it should be <html lang="en-GB class= "js"> a small but significant change.

How can we make this correct?

(Changing to ckan.locale_default = en-GB crashes the service).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions