Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/jermoss/infinitechess.org i…
Browse files Browse the repository at this point in the history
…nto pr/jermOSS/73
  • Loading branch information
Naviary2 committed Jul 19, 2024
2 parents c16fb30 + 01876cc commit dffadd8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/TRANSLATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ In case you are translating a language that is currently not present in the proj
> [!IMPORTANT]
> You should always use [en-US.toml](../translation/en-US.toml) as a reference. It is the only file that is up to date and comes straight from the developers. Do not use any other files!
Then you can start a test server with `npx nodemon` and start translating. If you head to your browser at address `https://localhost:3443` the website should be there and it should automatically update as you make your changes (after reloading the page). Make sure you have selected the language that you are editing in the website's UI. At the bottom, there is a footer with a language selection dropdown menu at the bottom of almost every page.
Then you can start a test server with `npx nodemon` and start translating. If you head to your browser at address `https://localhost:3443` the website should be there and it should automatically update as you make your changes (after reloading the page). Make sure you have selected the language that you are editing in the website's UI. There is a footer with a language selection dropdown at the bottom of almost every page.

In case you are updating an existing language and you aren't sure what has changed since the last update, you can view changes of `en-US.toml` [here](https://github.com/Infinite-Chess/infinitechess.org/commits/main/translation/en-US.toml).

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ What began as an indie project by [Naviary](https://www.youtube.com/@Naviary) in

This project is open source! If you have a feature idea you want to try implementing, or you have skills in html, css, javascript, or Node, we welcome contributions! To get started collaborating, please read the [Setup Guide](./docs/SETUP.md)!

In case you want to help us with translating the website to other languages, please read the [translation guide](./docs/TRANSLATIONS.md).
In case you want to help us with translating the website to other languages, please read the [Translation Guide](./docs/TRANSLATIONS.md).

We are still far off from our vision. We refuse to stop until many crucial features of this universe are built:
- Truly infinite move distance
Expand Down
3 changes: 3 additions & 0 deletions src/server/config/setupTranslations.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const staticTranslatedTemplates = [
"errors/500",
];

// Removed because <a> tags are no longer in whitelist
/*
const link_white_list = [
"/",
"/login",
Expand Down Expand Up @@ -57,6 +59,7 @@ const link_white_list = [
"https://github.com/Infinite-Chess/infinitechess.org",
"https://discord.com/channels/1114425729569017918/1114427288776364132/1240014519061712997"
];
*/

const xss_options = {
whiteList: {
Expand Down

0 comments on commit dffadd8

Please sign in to comment.