Hello Ghost team,
Is there a plan to support i18n in Casper itself? I’ll be glad to work on a PR if it’s the case.
I have a client who wants to have its site in French. So why not merge it directly in Casper.
Let me know. Cheers!
Hello Ghost team,
Is there a plan to support i18n in Casper itself? I’ll be glad to work on a PR if it’s the case.
I have a client who wants to have its site in French. So why not merge it directly in Casper.
Let me know. Cheers!
There is a World version of Casper, available here.
I did contribute to this very repo for the French CA version.
The question still remains. It would nice to have the official Casper to support it at the core. There are many forks that would benefit by having i18n by default.
+1
Is there a specific reason why i18n is kept separated from the official theme? It is double maintenance and the merges from Casper each time the theme is updated are always taking forever to be pulled.
Hello,
Same here, I was about to fill an issue on Github, I ended up here and found WorldCasper, but I don’t understand why this isn’t included in Casper itslef.
Could you please tell us if there is a reason for that ?
I would gladly try to contribute as well if you plan on adding this feature to Casper.
Regards.
Edit: I’m just looking for the “translate feature”, like detailled here, with the locales
directory, en.json
file, and so on.
If there is no translation, it’s fine, but having the helper functionnal would really be awesome.
Hello,
Me too, I would kindly contribute to translation but would appreciate an i18n version of Casper for Ghost 3.0+.
Thank you.
Hey all . Casper is one of our flagship themes and we like to keep the codebase as simple as possible. Keeping the code in Casper simple means that anyone who wants to start building their own themes can use Casper as a good basis or reference point. Adding multiple languages will make the theme less accessible to newcomers.
However if you do want to make a theme work in multiple languages then we’ve just updated one of our tutorials with how to do so. This tutorial also includes how to publish content in a different language and how to use multiple languages on a single Ghost site
:
https://ghost.org/tutorials/multi-language-content/
Hi all,
David, thanks you and your colleagues for the guides (this and availble following to your link). It seems to be very useful. Nevertheless, I need additional info:
I would like to use Casper theme and publish posts in English and Russian at https://dorotenko.pro.
At the manual is specified how to configure a site for a specific language. I do not understand, in what way do I need to specify both languages. Please see the screenshot from my admin panel:
At /casper/locales
I have already created and uploaded en.json
and ru.json
following to the example from your staff tutorial.
Hey @counsel, thanks for the kind words! In the screenshot you should just put in the language code of the main language you’re going to be writing in, if it’s Russian you just want to put in “ru”. This will then be added to your main templates.
To configure your site for additional other languages you need to duplicate the templates you’re using and amend them to work for those those languages. The json files you are referring to are designed for theme developers, so when someone comes to use the theme they can use it in their single specific language, they aren’t designed to be used for multiple languages.
Check out this specific section here where I talk about creating unique templates for different languages (de.hbs, etc):
https://ghost.org/tutorials/multi-language-content#create-templates-for-translated-collections
Essentially, you need to create duplicates of your templates that are prepared for the different languages you’ll be showing on your site.
I hope this makes more sense, any more questions just ask!
Hi David. Thanks for the clarification! In next weeks I will try to do it again, so hope your details will help. English will be the main language on my site in near future. As I understood you, I don’t need to change the language code from “en” to “ru”, instead of this I need to duplicate the templates. If I face with troubles again, I will back with new questions