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

Fix: custom translations bug #22

Merged
merged 2 commits into from
Mar 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions scripts/copy-res.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const loaderUtils = require("loader-utils");
// control when new languages are available.
const INCLUDE_LANGS = [
{'value': 'en_EN', 'label': 'English'},
{'value': 'en_US', 'label': 'English (US)'},
{'value': 'fr', 'label': 'Français'}
];

Expand Down
8 changes: 4 additions & 4 deletions src/i18n/strings/tchap_translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
"README": "This file is for tchap-specific translatsion, which get added on top of fr.json and en.json. See custom_translations_url in config.json.",

"Username": {
"en_EN": "Email",
"en": "Email",
"fr": "E-mail",
"comments": "We use E-mail to login in Tchap. The Login code accepts both username and email. So the simplest change for us to force login by email is to just rename the Username field to Email."
},
"Welcome to Tchap": {
"en_EN": "Welcome to Tchap",
"en": "Welcome to Tchap",
"fr": "Bienvenue sur Tchap"
},
"Examples:": {
"en_EN": "Examples:",
"en": "Examples:",
"fr": "Exemples :"
},
"Choose a homeserver:": {
"en_EN": "Choose a homeserver:",
"en": "Choose a homeserver:",
"fr": "Choisissez un serveur d'accueil :"
}
}