-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Add locale to categories #336
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the simple way this works
@@ -30,6 +30,10 @@ public class Categories : Core, ICategories | |||
{ | |||
private string Locale { get; set; } | |||
|
|||
private string CategoriesPath => string.IsNullOrEmpty(Locale) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about when the Locale is set to whitespace?
Maybe we should change this to be
string.IsNullOrWhitespace()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, done!
Thanks :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
I added more locale based stuff and rework what I did before. |
* Add locale to categories * Change check for localization been added * Add more locale based stuff
Allow API download content of the categories in locale if specified.