mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 06:40:31 +00:00
feat: add localization.
This commit is contained in:
@@ -3,12 +3,13 @@ import { Formik, Form } from 'formik';
|
|||||||
import { Intent } from '@blueprintjs/core';
|
import { Intent } from '@blueprintjs/core';
|
||||||
import intl from 'react-intl-universal';
|
import intl from 'react-intl-universal';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import { useHistory } from 'react-router-dom';
|
|
||||||
import { CLASSES } from 'common/classes';
|
import { CLASSES } from 'common/classes';
|
||||||
|
|
||||||
import { CreateSMSMessageTemplateSchema } from './SMSMessageTemplateForm.schema';
|
import { CreateSMSMessageTemplateSchema } from './SMSMessageTemplateForm.schema';
|
||||||
|
|
||||||
import SMSMessageTemplateFormContent from './SMSMessageTemplateFormContent';
|
import SMSMessageTemplateFormContent from './SMSMessageTemplateFormContent';
|
||||||
|
import withDashboardActions from 'containers/Dashboard/withDashboardActions';
|
||||||
|
|
||||||
|
import { compose } from 'utils';
|
||||||
|
|
||||||
export const defaultInitialValues = {
|
export const defaultInitialValues = {
|
||||||
entries: [
|
entries: [
|
||||||
@@ -22,12 +23,21 @@ export const defaultInitialValues = {
|
|||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function SMSMessageTemplateForm({}) {
|
function SMSMessageTemplateForm({
|
||||||
|
// #withDashboardActions
|
||||||
|
changePreferencesPageTitle,
|
||||||
|
}) {
|
||||||
// Form initial values.
|
// Form initial values.
|
||||||
const initialValues = {
|
const initialValues = {
|
||||||
...defaultInitialValues,
|
...defaultInitialValues,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
React.useEffect(() => {
|
||||||
|
changePreferencesPageTitle(
|
||||||
|
intl.get('sms_message_template.label.sms_messages_template'),
|
||||||
|
);
|
||||||
|
}, [changePreferencesPageTitle]);
|
||||||
|
|
||||||
// Handles form submit.
|
// Handles form submit.
|
||||||
const handleSubmit = (values, { setSubmitting, setErrors, resetForm }) => {};
|
const handleSubmit = (values, { setSubmitting, setErrors, resetForm }) => {};
|
||||||
|
|
||||||
@@ -44,3 +54,4 @@ export default function SMSMessageTemplateForm({}) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
export default compose(withDashboardActions)(SMSMessageTemplateForm);
|
||||||
|
|||||||
@@ -1431,6 +1431,7 @@
|
|||||||
"notify_via_sms.dialog.message_text":"Message Text",
|
"notify_via_sms.dialog.message_text":"Message Text",
|
||||||
"notify_via_sms.dialog.notify_via_sms":"Notify vis SMS",
|
"notify_via_sms.dialog.notify_via_sms":"Notify vis SMS",
|
||||||
"send": "Send",
|
"send": "Send",
|
||||||
|
"sms_message_template.label.sms_messages_template":"SMS Messages template",
|
||||||
"sms_message_template.label_mesage":"Message",
|
"sms_message_template.label_mesage":"Message",
|
||||||
"sms_message_template.label_Notification":"Notification",
|
"sms_message_template.label_Notification":"Notification",
|
||||||
"sms_message_template.label_auto":"Auto",
|
"sms_message_template.label_auto":"Auto",
|
||||||
|
|||||||
Reference in New Issue
Block a user