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