ichinose9372 / ft_transcendense_42

3 stars 1 forks source link

Minor module: Multiple language supports. #86

Closed ryhara closed 3 weeks ago

ryhara commented 1 month ago

Minor module: Multiple language supports. In this minor module, the objective is to ensure that your website supports multiple languages to cater to a diverse user base. Key features and goals include: ◦ Implement support for a minimum of three languages on the website to ac- commodate a broad audience. ◦ Provide a language switcher or selector that allows users to easily change the website’s language based on their preferences. ◦ Translate essential website content, such as navigation menus, headings, and key information, into the supported languages. ◦ Ensure that users can navigate and interact with the website seamlessly, re- gardless of the selected language. ◦ Consider using language packs or localization libraries to simplify the transla- tion process and maintain consistency across different languages. ◦ Allow users to set their preferred language as a default choice for subsequent visits to the website.

This minor module aims to enhance the accessibility and inclusivity of your website by offering content in multiple languages, making it more user-friendly for a diverse international audience.

ryhara commented 1 month ago

これを満たすのがめんどくさいかも?ユーザー管理をほぼ行っていないので,ユーザーとデフォルト言語を紐づけることが出来ない。

システム全体のデフォルト設定をすることは出来るかも?

jsで値を持っているとリロードすると消えてしまうのでDjangoまたはDBでデフォルト言語の設定を持っていなければならない?

yuidvg commented 4 weeks ago

ユーザーが希望する言語を、次回以降のウェブサイト訪問時のデフォルト選択として設定できるようにする。

一旦対応なしで、レビュー項目を見る

ryhara commented 3 weeks ago

ボタンで切り替えだけ出来た

https://github.com/ichinose9372/ft_transcendense_42/assets/89718149/47e9917a-5d58-4730-83c2-5dc97677b7bb

ryhara commented 3 weeks ago

以下2つを参考にDjangoで多言語化に対応する

追加

ryhara commented 3 weeks ago

以下をbackendコンテナ起動時にコンテナ内で実行するようにする必要があるかも

 python manage.py compilemessages