Ghost CMS Casper RTL Theme With Multi-language

Abdelhadi D.
2 min readMar 9, 2021

--

Hey,
Today, I want to share with you my latest work; I modified and set the Casper template to fully support right-to-left orientation just as it accepts adding any language via locales. This is useful if you write in a language like Arabic or Hebrew, Persian, for example, and you want your visitors to view the articles and the blog in the right direction.
Easily add your language by editing the locale file and translating the sentences, and your site will become RTL.

Installation

Enter this link “Casper RTL (Multi Languages)” and download the Casper-rtl.zip file from the dist folder.

Go to the Design section of your Dashboard and upload the file & activate the theme.

The result:

On the mobile screen:

How add your language?

Ghost’s front-end and themes are fully translatable by enabling a publication language in the setting in Ghost admin and using the translate helper to wrap around any plain text in your theme. Inside the locales folder, add target language files for each translatable language used on your site. For example, locales/ar.json for Arabic and locales/fa.json for Persian (Farsi), according to A valid language code, must be used.

The template supports the Arabic language pre-installed

You can contribute to translating the template into your language, make a fork for the template and add your language.

That’s it for today, and I hope you find this useful

If you need help with RTL support or anything about Arabic lang, you can contact me at my email: me@abdelhadi.org.

--

--

Abdelhadi D.

Product Designer & Front-end Developer, RTL & Arabic Lang Specialist.