# לוקליזציה של סרגל ניווט ותחתית מותאמים אישית

**URL:** https://meta.discourse.org/t/localisation-of-custom-navbar-and-footer/208747
**Category:** Development
**Created:** [10 בנובמבר,‏ 2021,‏ 4:53am UTC](https://meta.discourse.org/t/localisation-of-custom-navbar-and-footer/208747 "2021-11-10T04:53:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vinayak\_gupta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinayak_gupta/32/238696_2.png) [@vinayak\_gupta](https://meta.discourse.org/u/vinayak_gupta)
#### Post date: [10 בנובמבר,‏ 2021,‏ 4:53am UTC](https://meta.discourse.org/t/localisation-of-custom-navbar-and-footer/208747/1 "2021-11-10T04:53:35Z")

</div>

Hi,  
I have made some custom navigation bars by writing some HTML code in the edit CSS/HTML option. Now I want it to be localized based on country. So is there any possible way I can make it localized?  
I am attaching my sample code. Can I make use of any API or handlebars or any such stuff to make it working?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [10 בנובמבר,‏ 2021,‏ 10:30am UTC](https://meta.discourse.org/t/localisation-of-custom-navbar-and-footer/208747/2 "2021-11-10T10:30:21Z")

</div>

If you made this a Theme Component there is inbuilt support:

> [@Add localizable strings to themes and theme components](https://meta.discourse.org/t/adding-localizable-strings-to-themes-and-theme-components/109867):
>
> For those looking to add custom languages and translations to a Discourse theme or theme component, they [can now include](https://github.com/discourse/discourse/commit/880311dd4d2b367e54cc8244fba60fce69e121c3) localised strings, which are made available for use in UI components. Translations are stored in the same format as core/plugin translations, and can be used in almost the same way. Themes can supply translation files in a format like /locales/{locale}.yml. These files should be valid YAML, with a single top level key equal to the locale being defined. These can be defined us…

---

<div class="post-metadata">

### Author: ![vinayak\_gupta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinayak_gupta/32/238696_2.png) [@vinayak\_gupta](https://meta.discourse.org/u/vinayak_gupta)
#### Post date: [11 בנובמבר,‏ 2021,‏ 4:29am UTC](https://meta.discourse.org/t/localisation-of-custom-navbar-and-footer/208747/3 "2021-11-11T04:29:36Z")

</div>

I have made changes in HTML of the existing theme. See the attached code. Now I want the navbars to be loacalised. Can I call my API and consume the data or is there any other way work around it?

[navbar.txt](https://meta.discourse.org/uploads/short-url/lXLy76pBRD3nqyMcVxzU8lk3jOm.txt) (693 Bytes)
