Skip to content

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

@jontjs

Description

@jontjs

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy