Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[String] AsciiSlugger's symbolsMap should apply to all locales for a language #39178

Copy link
Copy link
Closed
@jontjs

Description

@jontjs
Issue body actions

Description
Make the AsciiSlugger's symbolsMap apply to all locales for a given language.

Example
When using the AsciiSlugger under the 'en_GB' locale, it doesn't change '&' to 'and', it removes it. However it does do this if your locale is 'en'.

Proposed approach
If the current locale is not explicitly in the symbolsMap, explode the locale string on underscores and apply the symbolsMap for the first part. E.g. for a locale of 'en_GB', it would use the 'en' symbolsMap.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.