Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK 6: Make OSCSA blog bilingual. #9

Open
Thesaleem opened this issue Oct 11, 2022 · 33 comments
Open

TASK 6: Make OSCSA blog bilingual. #9

Thesaleem opened this issue Oct 11, 2022 · 33 comments

Comments

@Thesaleem
Copy link

Description

Make the OSCSA blog bilingual by allowing user switch between English and Arabic.

195128086-aa67b73b-6a46-4d9f-a095-8e13ee718540

Who is working on this issue?

@Mublin @mutmainaho @Thesaleem

@Mublin
Copy link

Mublin commented Oct 11, 2022

We are working on it together @Thesaleem @mutmainaho

@Thesaleem
Copy link
Author

Thesaleem commented Oct 11, 2022

How do we get started @Mublin @mutmainaho

@Mublin
Copy link

Mublin commented Oct 11, 2022

we learn more about quarto, do your research

we create a nav item, an icon like in the main website

we create the arabic

Then maybe we can add dark-mode

@Nuel-Eneji
Copy link

@Mublin and @Thesaleem Can i join you both on this task ?

@Mublin
Copy link

Mublin commented Oct 12, 2022

Sure

@Nuel-Eneji
Copy link

What progress have you made now so I know where to start from

@Mublin
Copy link

Mublin commented Oct 12, 2022

still wrapping my head around quarto, we have to understand it first. I am still checking how it works, what about you?

@Nuel-Eneji
Copy link

I've watched a few introductory videos on youtube and I'm reading the documentation now
I've also setup RStudio on my local machine and I'm playing around with the features

@mutmainaho
Copy link

Hello @Mublin why do we have to use quarto cause I can see it uses python but the project was built on JavaScript. just asking for clarifications

@Mublin
Copy link

Mublin commented Oct 12, 2022

I've watched a few introductory videos on youtube and I'm reading the documentation now
I've also setup RStudio on my local machine and I'm playing around with the features

Great, happy to have you on board

@Mublin
Copy link

Mublin commented Oct 12, 2022

Hello @Mublin why do we have to use quarto cause I can see it uses python but the project was built on JavaScript. just asking for clarifications

I think when you read the task it shows bilingual and it shows we can check the sample from a github project, it’s uses quarto but try using your own way and see how it goes😉, there’s no right way in coding

@Njong392
Copy link
Contributor

I don't know if it has much to do with quarto. What if we used a translation plugin like i18n @BatoolMM ? I see that the project uses JavaScript, and we can use JSON files to serve both translations. So that the user could use some sort of toggle to switch between languages, and a fetch method is used to get the different translation files.

Would love to hear what you all think, here is an article I found.

@Mublin
Copy link

Mublin commented Oct 12, 2022 via email

@victorvictoria-maker
Copy link

@Mublin and @Njong392
I am not sure if there are Arabic content files in the repo as stated but I added google translate since the content on the blog page won't be static. I made a pull request also @BatoolMM

@Njong392
Copy link
Contributor

@Mublin and @Njong392 I am not sure if there are Arabic content files in the repo as stated but I added google translate since the content on the blog page won't be static. I made a pull request also @BatoolMM

The problem with google translate is that it does not care about the format of certain things like dates, numbers etc. I thought we could use localization to work around that.

@Thesaleem
Copy link
Author

I don't know if it has much to do with quarto. What if we used a translation plugin like i18n @BatoolMM ? I see that the project uses JavaScript, and we can use JSON files to serve both translations. So that the user could use some sort of toggle to switch between languages, and a fetch method is used to get the different translation files.

Would love to hear what you all think, here is an article I found.

@Mublin have you seen this? I read the article and I think it makes sense . I’m curious as to what @BatoolMM thinks.

@Mublin
Copy link

Mublin commented Oct 12, 2022

I don't know if it has much to do with quarto. What if we used a translation plugin like i18n @BatoolMM ? I see that the project uses JavaScript, and we can use JSON files to serve both translations. So that the user could use some sort of toggle to switch between languages, and a fetch method is used to get the different translation files.
Would love to hear what you all think, here is an article I found.

@Mublin have you seen this? I read the article and I think it makes sense . I’m curious as to what @BatoolMM thinks.

Sure let’s try that too

@Nuel-Eneji
Copy link

From the discussions on the reference repo given by @BatoolMM , (Here's the link) . I think we need to create different .yml files for both languages and render it. That means we still need to a fair knowledge of quarto

@Mublin
Copy link

Mublin commented Oct 12, 2022

You understand the concept now, im already working on that, work on that too

@victorvictoria-maker
Copy link

I don't know if it has much to do with quarto. What if we used a translation plugin like i18n @BatoolMM ? I see that the project uses JavaScript, and we can use JSON files to serve both translations. So that the user could use some sort of toggle to switch between languages, and a fetch method is used to get the different translation files.
Would love to hear what you all think, here is an article I found.

@Mublin have you seen this? I read the article and I think it makes sense . I’m curious as to what @BatoolMM thinks.

I think it does make sense too but from the article, all the english text has to be translated to arabic.

@Teslimsama
Copy link

@Thesaleem I will would like join

@BatoolMM
Copy link
Member

Thank you all for your hard work. An example of Arabic blog post with Quarto is here, but it's not deployed. YOu can locally deploy it and re-use some of the content!

@Mublin
Copy link

Mublin commented Oct 14, 2022

I cannot find the arabic posts, I have done it, but I cannot find the arabic posts @BatoolMM

@BatoolMM
Copy link
Member

It is a short one, but it's in the same repo. Also, note the CSS used for Arabic to switch everything to right-to-left.

Let us know if you need anything else!

@Mublin
Copy link

Mublin commented Oct 14, 2022

Ok will check it out now

@Mublin
Copy link

Mublin commented Oct 14, 2022

I cannot still find the Arabic post can you give me a link to check please @BatoolMM the link you gave me is given a 400 error code

@Mublin
Copy link

Mublin commented Oct 14, 2022

Still waiting for the Arabic contents the blog post @BatoolMM @alswajiab

@BatoolMM
Copy link
Member

@Mublin It should work now, the repo was private but I made it public now!

@Mublin
Copy link

Mublin commented Oct 14, 2022

@Mublin It should work now, the repo was private but I made it public now!

ok thank you working on it you can check it out here

@BatoolMM
Copy link
Member

Thank you @Mublin, it looks good to me but I need to review the PR!

@Mublin
Copy link

Mublin commented Oct 14, 2022

Thank you @Mublin, it looks good to me but I need to review the PR!

Thank you too, pull request done, you can check it out and see what is going on

@Tammy-Ajoko
Copy link

@Mublin I'd like to join in. What has been done so far

@Mublin
Copy link

Mublin commented Oct 21, 2022

@Mublin I'd like to join in. What has been done so far

Everything has been done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants