-
+
Connaître les démarches
diff --git a/source/components/ui/themeColours.js b/source/components/ui/themeColours.js
index 012102313..d952abde1 100644
--- a/source/components/ui/themeColours.js
+++ b/source/components/ui/themeColours.js
@@ -10,6 +10,7 @@ export default forcedThemeColour => {
colour = forcedThemeColour || defaultColour,
lightColour = lightenColour(colour, 10),
darkColour = lightenColour(colour, -10),
+ lighterColour = lightenColour(colour, 45),
lightestColour = lightenColour(colour, 100),
darkestColour = lightenColour(colour, -100),
textColour = findContrastedTextColour(colour, true), // the 'simple' version feels better...
@@ -22,14 +23,14 @@ export default forcedThemeColour => {
return {
colour,
- lightenColour: amount => lightenColour(colour, amount),
textColour,
inverseTextColour,
lighterTextColour,
lighterInverseTextColour,
textColourOnWhite,
- lightColour,
darkColour,
+ lightColour,
+ lighterColour,
lightestColour,
darkestColour
}
diff --git a/source/i18n.js b/source/i18n.js
index 862f7483b..2c9261bb0 100644
--- a/source/i18n.js
+++ b/source/i18n.js
@@ -34,4 +34,4 @@ i18next.init(
}
)
-export default lang
+export default i18next
diff --git a/source/locales/en.yaml b/source/locales/en.yaml
index 71ddf75da..aee84b021 100644
--- a/source/locales/en.yaml
+++ b/source/locales/en.yaml
@@ -403,8 +403,12 @@ après:
retour: Creation checklist
avance: Go to social security
-sécu: |
- <0>Social protection: costs and benefits0><1>France has chosen to provide its citizens with a high-quality social safety net. This mandatory system is based on solidarity and designed to ensure the general welfare of its people2>.1><2>Easy access to health care and other services ensures that companies can put healthy, productive and highly skilled employees to work in an attractive market in the heart of Europe.2><3>As soon as you declare and pay your employees, you automatically entitle them to the general scheme of French Social Security (health, maternity, disability, old age, occupational illness and accidents) and unemployment insurance.3><4><0>0>4><5>How much does it cost to hire ?5>
+sécu:
+ page:
+ titre: 'Social security in France: costs and benefits'
+ description: Découvrez les coûts et avantages de la sécurité sociale française en simulant un cas concret d'embauche dans votre entreprise.
+ content: |
+ <0>Social protection: costs and benefits0><1>France has chosen to provide its citizens with a high-quality social safety net. This mandatory system is based on solidarity and designed to ensure the general welfare of its people2>.1><2>Easy access to health care and other services ensures that companies can put healthy, productive and highly skilled employees to work in an attractive market in the heart of Europe.2><3>As soon as you declare and pay your employees, you automatically entitle them to the general scheme of French Social Security (health, maternity, disability, old age, occupational illness and accidents) and unemployment insurance.3><4><0>0>4><5>How much does it cost to hire ?5>
Votre entreprise: Your company
Protection sociale: Social security
@@ -480,3 +484,23 @@ embauche:
Guide du status juridique: Legal status guide
Démarches de création: Creation process checklist
+
+path:
+ entreprise:
+ index: '/company'
+ monEntreprise: '/my-company'
+ créer: '/create-a-{{companyStatus}}'
+ trouver: '/find'
+ après: '/after-registration'
+ statusJuridique:
+ index: '/legal-status'
+ liste: '/list'
+ gérantMinoritaire: '/chairman-or-managing-director'
+ responsabilité: '/liability'
+ statusDirigeant: '/directors-status'
+ nombreAssociés: '/multiple-associates'
+ microEntreprise: '/micro-enterprise-or-individual-business'
+ sécurité sociale:
+ index: '/social-security'
+ démarche embauche:
+ index: '/hiring-process'
diff --git a/source/reducers/rootReducer.js b/source/reducers/rootReducer.js
index f8bd01831..286df0c60 100644
--- a/source/reducers/rootReducer.js
+++ b/source/reducers/rootReducer.js
@@ -17,7 +17,7 @@ import { combineReducers } from 'redux'
import { reducer as formReducer } from 'redux-form'
import computeThemeColours from 'Ui/themeColours'
import { simulationTargetNames } from '../config.js'
-import defaultLang from '../i18n'
+import i18n from '../i18n'
import inFranceAppReducer from './inFranceAppReducer'
import storageReducer from './storageReducer'
import type { Action } from 'Types/ActionsTypes'
@@ -66,7 +66,7 @@ function activeTargetInput(state = null, { type, name }) {
}
}
-function lang(state = defaultLang, { type, lang }) {
+function lang(state = i18n.language, { type, lang }) {
switch (type) {
case 'SWITCH_LANG':
return lang
diff --git a/source/selectors/companyStatusSelectors.js b/source/selectors/companyStatusSelectors.js
index d5efcccab..58cf6b586 100644
--- a/source/selectors/companyStatusSelectors.js
+++ b/source/selectors/companyStatusSelectors.js
@@ -12,6 +12,7 @@ import {
pick,
sortBy
} from 'ramda'
+import sitePaths from '../sites/mycompanyinfrance.fr/sitePaths'
const LEGAL_STATUS_DETAILS: { [status: string]: CompanyLegalStatus } = {
'Micro-enterprise': {
@@ -169,24 +170,10 @@ export const nextQuestionSelector = (state: {
}
export const nextQuestionUrlSelector = (state: { inFranceApp: State }) => {
- const questionToUrl = {
- multipleAssociates: 'number-of-associates'
- }
+ const paths = sitePaths()
const nextQuestion = nextQuestionSelector(state)
if (!nextQuestion) {
- return '/company/legal-status/list'
+ return paths.entreprise.statusJuridique.liste
}
- return `/company/legal-status/${
- nextQuestion in questionToUrl
- ? // $FlowFixMe
- questionToUrl[nextQuestion]
- : nextQuestion
- .replace(/[^a-zA-Z0-9]+/g, '-')
- .replace(/([A-Z]+)([A-Z][a-z])/g, '$1-$2')
- .replace(/([a-z])([A-Z])/g, '$1-$2')
- .replace(/([0-9])([^0-9])/g, '$1-$2')
- .replace(/([^0-9])([0-9])/g, '$1-$2')
- .replace(/-+/g, '-')
- .toLowerCase()
- }`
+ return paths.entreprise.statusJuridique[nextQuestion]
}
diff --git a/source/sites/mycompanyinfrance.fr/App.js b/source/sites/mycompanyinfrance.fr/App.js
index f6e2dd618..7394b7a8b 100644
--- a/source/sites/mycompanyinfrance.fr/App.js
+++ b/source/sites/mycompanyinfrance.fr/App.js
@@ -21,6 +21,7 @@ import CompanyIndex from './pages/Company'
import HiringProcess from './pages/HiringProcess'
import Landing from './pages/Landing'
import SocialSecurity from './pages/SocialSecurity'
+import sitePaths from './sitePaths'
if (process.env.NODE_ENV === 'production') {
Raven.config(
@@ -66,24 +67,35 @@ class InFranceRoute extends Component {
}
}
-let RouterSwitch = translate()(() => (
-
-
-
- {/* Passing location down to prevent update blocking */}
-
-