Update French translations and set default values for municipality and district

This commit is contained in:
Don Wilfried 2025-02-23 20:57:50 +01:00
parent c09626f480
commit 2349f60ba8
4 changed files with 20 additions and 33 deletions

View File

@ -305,7 +305,7 @@
"CREDIT": "Crédit",
"NEXT": "Suivant",
"PREVIOUS": "Précédent",
"SPONSOR_CODE": "Code réseau de taxe",
"SPONSOR_CODE": "Code classe de taxes",
"CODE_PARRAIN": "Code parrain",
"CODE_SPONSOR": "Code sponsor",
"SOLDE_UNVAIBLE": "solde non disponible",
@ -424,7 +424,7 @@
"TEXT_GUIDE_USER_11": "Cliquez sur l'option de profil pour avoir des informations lier à votre compte",
"CATEGORY": "Catégorie",
"WAY": "Itinéraire",
"ADD_NETWORK": "Ajouter réseau de taxe",
"ADD_NETWORK": "Ajouter une classe de taxes",
"POINT_NUMBER": "Nombres de points",
"SUPERIOR_CODE": "Code parrain",
"ADD_SUCCES": "Ajout reussi",
@ -611,7 +611,7 @@
"NUMERO_QUITANCE_SUCCES": "Numéro de quitance enregistré avec succès",
"ORDRE_RECETTE_MODIFY_SUCCES": "Numéro ordre de recette modifié avec succès",
"NUMERO_QUITANCE_MODIFY_SUCCES": "Numéro de quitance modifié avec succès",
"TAXES_SUR_LA_PROPRETE": "Taxe sur la propreté",
"TAXES_SUR_LA_PROPRETE": "Impôt général synthétique",
"SAVE": "Enregistrer",
"TEXT_SUPPRESS_CONFIRM_TAXE": "Voulez vous vraiment supprimer cette taxe?",
"NUMERO_QUITANCE": "Numéro quitance",

View File

@ -131,9 +131,9 @@ class CreateUserStep extends Component {
companies_types_selected_value: null,
responsable_name: null,
technical_approval: null,
municipality: null,
municipality: "Douala",
neighborhood: null,
district: null,
district: "Douala 3eme",
id_patente: null,
TVA: false,
IRPP: false,
@ -1555,6 +1555,8 @@ handleTaxSlection = (selectedTax) => {
label={`${I18n.t("COMMUNE_SIEGE_SOCIAL")} *`}
data={this.state.result.municipalities}
useNativeDriver={true}
disabled={true}
value={this.state.municipality}
valueExtractor={(value) => {
return value
}}
@ -1587,6 +1589,8 @@ handleTaxSlection = (selectedTax) => {
label={`${I18n.t('ARRONDISSEMENT')} *`}
data={this.result.districts}
useNativeDriver={true}
disabled={true}
value={this.state.district}
valueExtractor={(value) => {
return value
}}
@ -2254,7 +2258,8 @@ handleTaxSlection = (selectedTax) => {
} else {
createGeolocatedAccount(data).then((result) => {
console.log(result);
console.log("here===>>",data);
console.log("here2===>>",result);
if (result.success !== undefined && result.success === 1) {
const message = result.category === 'super' ? I18n.t("HYPERVISOR_MUST_VALIDATE_SUPERVISOR")
: I18n.t("ACCOUNT_SUCCESSFULL_CREATED")

View File

@ -697,7 +697,7 @@ export default class CreateUserStep2 extends Component {
paddingRight: 20,
backgroundColor: 'white'
}}>
<Fumi
{/* <Fumi
iconClass={FontAwesomeIcon}
label={I18n.t('COUNTRY_CHOICE')}
// value={this.state.countries}
@ -778,27 +778,7 @@ export default class CreateUserStep2 extends Component {
}}
/> */}
<Fumi
iconClass={FontAwesomeIcon}
iconName={'flag'}
// value={this.state.indicatif}
value={selectedCountry ? `${selectedCountry.code_dial}` : ''}
enabled={false}
editable={false}
// onChangeText={(text) => {
// let phonenum = text + (this.state.contact !== undefined ? this.state.contact : "");
// this.setState({indicatif: text, phone: phonenum});
// }}
style={{
width: responsiveWidth(30),
height: responsiveHeight(10),
alignSelf: 'center',
marginTop: responsiveHeight(2),
marginLeft: responsiveWidth(5),
marginRight: responsiveWidth(5),
borderRadius: 5,
}}
/>
<View>
<Fumi iconClass={FontAwesomeIcon} iconName={'phone'}
placeholder={I18n.t('PHONE')}
@ -815,8 +795,9 @@ export default class CreateUserStep2 extends Component {
marginTop: responsiveHeight(2),
marginRight: responsiveWidth(5),
marginLeft: responsiveWidth(5),
width: responsiveWidth(55),
width: responsiveWidth(90),
borderRadius: 5,
}}
>
@ -837,7 +818,8 @@ export default class CreateUserStep2 extends Component {
marginTop: responsiveHeight(2),
marginRight: responsiveWidth(5),
width: responsiveWidth(55),
marginLeft: responsiveWidth(5),
width: responsiveWidth(90),
borderRadius: 5,
}}
>

View File

@ -305,7 +305,7 @@
"CREDIT": "Crédit",
"NEXT": "Suivant",
"PREVIOUS": "Précédent",
"SPONSOR_CODE": "Code réseau de taxe",
"SPONSOR_CODE": "Code classe de taxes",
"CODE_PARRAIN": "Code hiérarchique ou taxe",
"CODE_SPONSOR": "Code sponsor",
"SOLDE_UNVAIBLE": "solde non disponible",
@ -424,7 +424,7 @@
"TEXT_GUIDE_USER_11": "Cliquez sur l'option de profil pour avoir des informations lier à votre compte",
"CATEGORY": "Catégorie",
"WAY": "Itinéraire",
"ADD_NETWORK": "Ajouter réseau de taxe",
"ADD_NETWORK": "Ajouter une classe de taxes",
"POINT_NUMBER": "Nombres de points",
"SUPERIOR_CODE": "Code hiérarchique ou taxe",
"ADD_SUCCES": "Ajout reussi",
@ -612,7 +612,7 @@
"NUMERO_QUITANCE_SUCCES": "Numéro de quitance enregistré avec succès",
"ORDRE_RECETTE_MODIFY_SUCCES": "Numéro ordre de recette modifié avec succès",
"NUMERO_QUITANCE_MODIFY_SUCCES": "Numéro de quitance modifié avec succès",
"TAXES_SUR_LA_PROPRETE": "Taxe sur la propreté",
"TAXES_SUR_LA_PROPRETE": "Impôt général synthétique",
"SAVE": "Enregistrer",
"TEXT_SUPPRESS_CONFIRM_TAXE": "Voulez vous vraiment supprimer cette taxe?",
"NUMERO_QUITANCE": "Numéro quitance",