Skip to content
Snippets Groups Projects
Commit ffad398c authored by Léo Banno-Cloutier's avatar Léo Banno-Cloutier
Browse files

jams-react-client: fix language configuration

Change-Id: I9b696bb7b58bf013b2e18710871857f606d1bdf0
parent d175d96c
No related branches found
No related tags found
No related merge requests found
......@@ -252,5 +252,23 @@
"dht_configuration_popup": "Configure the DHT proxy server used by this account",
"contact_management": "Contact management",
"lookup_info": "If this option is disabled, user can not search and add new contacts",
"local_lan": "Local LAN"
"local_lan": "Local LAN",
"customization": "Customization",
"is_customization_enabled": "Enable customization",
"welcome_has_title": "Title",
"welcome_title": "Welcome to Jami",
"welcome_has_description": "Description",
"welcome_Description": "Here is your Jami identifier, don't hesitate to share it in order to be contacted more easily!",
"welcome_has_Tips": "Enable Tips display",
"instruction_title": "Use Jami title or personalize it (max 20 characters)",
"instruction_description": "Use Jami description or personalize it (max 100 characters)",
"welcome_has_BackgroundCustom": "Background",
"instruction_background": "Choose a background color or a background image",
"or": "or",
"welcome_has_Logo": "Logotype",
"instruction_logo": "Use Jami logotype or upload a logotype",
"call_parameters": "Call parameters",
"preview_tip1": "Add a picture and a nickname to complete your profile",
"preview_tip2": "Why should I save my account?",
"preview_tip3": "How to set shortcuts?"
}
......@@ -252,5 +252,23 @@
"dht_configuration_popup": "Configurer le serveur proxy DHT utilisé par ce compte",
"contact_management": "Gestion des contacts",
"lookup_info": "Si cette option est désactivée, les utilisateurs ne pourront pas rechercher ni ajouter de nouveaux contacts",
"local_lan": "Réseau local (LAN)"
"local_lan": "Réseau local (LAN)",
"customization": "Personaliser",
"is_customization_enabled": "Personaliser la page d'accueil",
"welcome_has_title": "Titre",
"welcome_title": "Bienvenue sur Jami",
"welcome_has_description": "Description",
"welcome_Description": "Voici votre identifiant Jami. N'hésitez pas à le partager afin d'être joint plus facilement.",
"welcome_has_Tips": "Afficher les conseils",
"instruction_title": "Utiliser le titre de Jami ou le personaliser (max 20 caractères)",
"instruction_description": "Utiliser la description de Jami ou le personaliser (max 100 caractères)",
"welcome_has_BackgroundCustom": "Arrière-plan",
"instruction_background": "Choisir une couleur ou une image d'arrière-plan",
"or": "ou",
"welcome_has_Logo": "Logo",
"instruction_logo": "Utiliser le logo de Jami ou téléverser un logo",
"call_parameters": "Paramètres d'appels",
"preview_tip1": "Add a picture and a nickname to complete your profile",
"preview_tip2": "Why should I save my account?",
"preview_tip3": "How to set shortcuts?"
}
......@@ -30,14 +30,11 @@ export default function LanguagePicker(props) {
fetch("/available_languages.json")
.then((res) => res.json())
.then((result) => {
const response = result.languages;
let translates_languages = [{ code: "en", name: "English" }];
response.forEach((lang) => {
if (result.stats[lang.code]["translated"]["percentage"] > 0.01) {
translates_languages.push(lang);
}
});
const response = result.data.map(({ attributes }) => attributes);
let translates_languages = [
...response,
{ code: "en", name: "English" },
];
let exists = false;
translates_languages.map((option) => {
......
......@@ -392,7 +392,7 @@ export default function EditBlueprintPermissions(props) {
<Grid container spacing={2}>
<Grid item xs={12} sm={12} md={12}>
<FormLabel component="legend">
Call parameters
{i18next.t("call_parameters", "Call parameters")}
</FormLabel>
<FormGroup row>
<FormControlLabel
......
......@@ -298,7 +298,7 @@ export default function Blueprints() {
color="info"
className={classes.whiteButtonText}
>
Cancel
{i18next.t("cancel", "Cancel")}
</Button>
<Button
onClick={handleCreateBlueprint}
......@@ -306,7 +306,7 @@ export default function Blueprints() {
disabled={disableCreate}
autoFocus
>
Create
{i18next.t("create_blueprint", "Create blueprint")}
</Button>
</DialogActions>
</Dialog>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment