themefisher / airspace-hugo

Airspace Hugo theme for multipurpose use, like Portfolio, Blog, Business.
https://gethugothemes.com/products/airspace/?utm_source=airspace_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
351 stars 508 forks source link

Spanish Translation #216

Closed tonycorreia91 closed 2 years ago

tonycorreia91 commented 2 years ago

Hello, I am trying to build a Spanish translation to the site (and remove the FR/DE translations). In the Config file, I replaced the FR translation with the code below (so that I can simply replace the info in the FR folder to its Spanish translation). I also changed the French folder to be named "Spanish". However, a problem is still persisting whereas, as I modify the md files in the now-Spanish folders, nothing changes on the site. It seems that I might be missing a step somewhere to link the md files under the "spanish" folder to the html code that I have customized. Any advice on how to link the two so that I can start rendering spanish md files would be appreciated.

[languages.es]
languageName = "Español"
languageCode = "es-ES"
contentDir = "content/spanish"
weight = 2
copyright = "Copyright © 2021 [Soma Loans, Inc.](https://somaloans.com). Reservados todos los derechos."

# Navigation menus
# NOTE: Leaf entries linking to content should be defined in the content file's respective front matter.
[[languages.es.menu.main]]
hasChildren = true
weight = 5
name = "más"
tonycorreia91 commented 2 years ago

Nevermind, I just found out that you have to "re-link" the config file in order to see the changes that are made to the md files when running locally.