Logo Toha
  • Home
  • About
  • Skills
  • Experiences
  • Projects
  • More
    Featured Posts Recent Posts Achievements
  • Posts
  • Notes
  • Docs
  • English
    English Français বাংলা Español
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Posts
  • Features
  • Quickstart
  • Getting Started
    • Prepare Site
    • Deploy in Github Pages
    • Deploy in Netlify
    • Automate Theme Update
  • Configuration
    • Site Parameters
    • Sections
      • About Section
      • Skills Section
      • Experiences Section
      • Education Section
      • Projects Section
      • Featured Posts Section
      • Recent Posts Section
      • Achievements Section
  • Writing Posts
    • Organizing Posts
      • Creating Category
      • Sub-Category
        • Creating Sub-Category
    • Front Matter
    • Markdown Guide
    • Math Guide
    • Rich Content
    • Mermaid
    • Using Emoji
  • Customizing
    • Enable Dark Theme
    • CSS Customization
    • Layout Customization
    • Adding New Section
  • Translation
    • Adding new language
    • Translating Homepage
    • Translating Posts
  • Analytics
  • Comments
  • Support Links
  • Shortcodes
  • External Link Example
  • Contributing
  • V3 to V4 Migration
Hero Image
How to add an unsupported language

If you want to translate to an unsupported language, you can translate the UI elements. Create an i18n file To do so, you have to create the i18n diretory inside the root of the site, the directory where you can find the hugo.yaml file, and directories like data, content, etc. Afterwards, you can create the file <language_code>.toml into the i18n directory. In this directory, you can find all language codes with the flag that will appear with that code.

Monday, January 15, 2024 | 2 minutes Read
Hero Image
How to Translate Posts

This theme has built-in support for multiple language. Before starting the post translation, make sure that you have enabled the language to your site. If that’s not the case, you can follow the section Add the language to the site from the guide How to Translate Site Data. Creating the post Once you have your desired language added to your website, know you can translate posts to that language. We’re going to assume that you want to translate an existing post.

Monday, January 15, 2024 | 1 minute Read
Hero Image
How to Translate Site Data

This theme has built-in support for multiple language. Add the language to the site Adding the language to your site will translate the UI to that language (e.g. the buttons, the nav bars, etc.). Get language code In order to translate your site, you will need the code from your language. The following table contains the supported languages algonside its codes: Languages Code English en / none বাংলা bn Français fr Indonesian id Deutsch de Español es 简体中文 zh-cn / zh-tw हिन्दी hi Italiano it 日本語 jp 한국어 ko русский ru suomi fi Tiếng Việt vn Turkish tr Arabic (العربية) ar Português Europeu pt-pt Català ad Português Brasileiro pt-br Dutch nl Hebrew he For a complete list of the supported languages, please check the README file from the toha repository.

Monday, January 15, 2024 | 2 minutes Read
Navigation
  • About
  • Skills
  • Experiences
  • Projects
  • Featured Posts
  • Recent Posts
  • Achievements
Contact me:
  • johndoe@example.com
  • johndoe
  • John Doe
  • +0123456789

Liability Notice: This theme is under MIT license. So, you can use it for non-commercial, commercial, or private uses. You can modify or distribute the theme without requiring any permission from the theme author. However, the theme author does not provide any warranty or takes any liability for any issue with the theme.


Toha Theme Logo Toha
© 2020 Copyright.
Powered by Hugo Logo