Merge branch 'test-AIO' into feature/IO-2458-RO-Closer
# Conflicts: # client/src/components/job-bills-total/job-bills-total.component.jsx # client/src/components/job-costing-statistics/job-costing-statistics.component.jsx # client/src/components/job-lifecycle/job-lifecycle.component.jsx # client/src/components/job-payments/job-payments.component.jsx # client/src/components/labor-allocations-table/labor-allocations-table.component.jsx # client/src/components/labor-allocations-table/labor-allocations-table.payroll.component.jsx # client/src/components/shop-info/shop-info.component.jsx # client/src/graphql/bodyshop.queries.js # client/src/graphql/jobs.queries.js # client/src/pages/jobs-close/jobs-close.component.jsx # client/src/utils/instanceRenderMgr.js
This commit is contained in:
@@ -1657,6 +1657,7 @@
|
||||
"driveable": "Driveable",
|
||||
"employee_body": "Body",
|
||||
"employee_csr": "Customer Service Rep.",
|
||||
"employee_csr_writer": "Writer",
|
||||
"employee_prep": "Prep",
|
||||
"employee_refinish": "Refinish",
|
||||
"est_addr1": "Estimator Address",
|
||||
@@ -1668,7 +1669,7 @@
|
||||
"federal_tax_payable": "Federal Tax Payable",
|
||||
"federal_tax_rate": "Federal Tax Rate",
|
||||
"ins_addr1": "Insurance Co. Address",
|
||||
"ins_city": "Insurance City",
|
||||
"ins_city": "Insurance Co. City",
|
||||
"ins_co_id": "Insurance Co. ID",
|
||||
"ins_co_nm": "Insurance Company Name",
|
||||
"ins_co_nm_short": "Ins. Co.",
|
||||
|
||||
@@ -1657,6 +1657,7 @@
|
||||
"driveable": "",
|
||||
"employee_body": "",
|
||||
"employee_csr": "Representante de servicio al cliente.",
|
||||
"employee_csr_writer": "",
|
||||
"employee_prep": "",
|
||||
"employee_refinish": "",
|
||||
"est_addr1": "Dirección del tasador",
|
||||
|
||||
@@ -1657,6 +1657,7 @@
|
||||
"driveable": "",
|
||||
"employee_body": "",
|
||||
"employee_csr": "représentant du service à la clientèle",
|
||||
"employee_csr_writer": "",
|
||||
"employee_prep": "",
|
||||
"employee_refinish": "",
|
||||
"est_addr1": "Adresse de l'évaluateur",
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import i18n from 'i18next';
|
||||
import LanguageDetector from 'i18next-browser-languagedetector';
|
||||
import { initReactI18next } from 'react-i18next';
|
||||
import en_Translation from './en_us/common.json';
|
||||
import es_Translation from './es/common.json';
|
||||
import fr_Translation from './fr/common.json';
|
||||
import { GenerateTemplates } from '../utils/RenderTemplate';
|
||||
import i18n from "i18next";
|
||||
import LanguageDetector from "i18next-browser-languagedetector";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
import en_Translation from "./en_us/common.json";
|
||||
import es_Translation from "./es/common.json";
|
||||
import fr_Translation from "./fr/common.json";
|
||||
import { GenerateTemplates } from "../utils/RenderTemplate";
|
||||
|
||||
// the translations
|
||||
// (tip move them in a JSON file and import them)
|
||||
const resources = {
|
||||
'en-US': en_Translation,
|
||||
'fr-CA': fr_Translation,
|
||||
'es-MX': es_Translation,
|
||||
"en-US": en_Translation,
|
||||
"fr-CA": fr_Translation,
|
||||
"es-MX": es_Translation
|
||||
};
|
||||
i18n
|
||||
.use(LanguageDetector) // passes i18n down to react-i18next
|
||||
@@ -21,16 +21,16 @@ i18n
|
||||
resources,
|
||||
//lng: "en",
|
||||
detection: {},
|
||||
fallbackLng: 'en-US',
|
||||
fallbackLng: "en-US",
|
||||
debug: import.meta.env.DEV,
|
||||
react: {
|
||||
useSuspense: true,
|
||||
useSuspense: true
|
||||
},
|
||||
//keySeparator: false, // we do not use keys in form messages.welcome
|
||||
interpolation: {
|
||||
escapeValue: false, // react already safes from xss
|
||||
skipOnVariables: false,
|
||||
},
|
||||
skipOnVariables: false
|
||||
}
|
||||
},
|
||||
(error) => {
|
||||
GenerateTemplates();
|
||||
|
||||
Reference in New Issue
Block a user