# Localized categories plugin

**URL:** <https://meta.discourse.org/t/localized-categories-plugin/45296>\
**Category:** Plugin\
**Tags:** broken\
**Created:** [5 Giugno 2016, 9:42pm UTC](https://meta.discourse.org/t/localized-categories-plugin/45296 "2016-06-05T21:42:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [5 Giugno 2016, 9:42pm UTC](https://meta.discourse.org/t/localized-categories-plugin/45296/1 "2016-06-05T21:42:21Z")

</div>

A plugin to set a category’s locale based off it’s slug.

[https://github.com/scossar/localized-categories](https://github.com/scossar/localized-categories)

This plugin allows you to set the locale for individual categories by basing the category slug off the locale’s language code. For example, for Persian set the category’s slug to `fa-ir`. The locale will be applied to the category and to its subcategories.

When the locale changes, the new locale is automatically reloaded. For non-locale categories, the locale is reset to either the site’s default locale, or the user’s preferred locale.

_Todo: get the locale off the http headers for non-logged in users._

The plugin works, but is still under development. If you are interested in using it on a ‘serious’ website, get in touch with me.

The categories page is displayed in either the site’s default locale or the user’s preferred locale:

 ![](https://global.discourse-cdn.com/meta/original/3X/2/f/2fc67b622ff4637fca0e6252d44d04ecb8b41a91.png)

The category page for localized categories uses the category’s locale:

 ![](https://global.discourse-cdn.com/meta/original/3X/c/1/c1fd0654795d0a9e37b927e8846de3d24c587d54.png)

This is shown when the locale is being updated. The text should probably be replaced with some kind of graphic:

 ![](https://global.discourse-cdn.com/meta/original/3X/e/e/ee7db8db5fd2bd95c16423d32c03537ee7b244d4.png)

---

_[View the full topic](https://meta.discourse.org/t/localized-categories-plugin/45296)._
