Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New lang: bg. Updated lang: ru. URL slug ability to group by lang. #892

Merged
merged 6 commits into from
Dec 27, 2020

Conversation

thewwwizard
Copy link
Contributor

  • Added new language - Bulgarian.
  • Updated language - Russian.
  • Ability to add different language sets for URL slugify funtion.
    Group sets by lang is required cause some langs may have their own rules for the same symbols (like "Щ" in ru and bg - lines 81 and 116).
    Not a perfect solution with slug but in this case I found it the easiest one :)
    More info in the commit description..

Not a perfect solution but in this case I found it the easiest one :)
Group sets by lang if required cause some langs may have their own rules for the same symbols (like "Щ" in ru and bg - lines 81 and 116).
After that run locale's set first (if exists) and then run default set (sets.default).
@austintoddj austintoddj changed the base branch from master to develop November 16, 2020 14:25
@austintoddj
Copy link
Owner

Thanks for submitting this @thewwwizard! I'll take a look at this in just a bit.

Copy link
Owner

@austintoddj austintoddj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So after looking at this a bit, I wonder if we could leave the strings.js file as it is right now, and only merge in the 2 language file changes.

Then, let's do a separate PR since I want to try and find a more future-proof solution to this slugify() method. You can certainly add this code you've written into that new PR, but I want to explore other ways we can approach it as well.

@thewwwizard
Copy link
Contributor Author

@austintoddj Ok. So I'll create a separate PR with only these 2 commits (lang file changes). And do I need to change anything in the current PR?

@austintoddj
Copy link
Owner

austintoddj commented Dec 11, 2020

No you should be good. Once that new PR is merged in with the language changes, the only change in this one will be the slugify() method.

@austintoddj austintoddj merged commit b492427 into austintoddj:develop Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants