chore: Localization of several charts and elements (#22150)

Co-authored-by: ashumeiko <ashumeiko@ashumeiko.com>
This commit is contained in:
Artem Shumeiko
2023-01-11 19:42:54 +03:00
committed by GitHub
parent 44c9cf4de5
commit f3696ceef3
98 changed files with 748 additions and 663 deletions

View File

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import { SafeMarkdown, styled } from '@superset-ui/core';
import { SafeMarkdown, styled, t } from '@superset-ui/core';
import Handlebars from 'handlebars';
import moment from 'moment';
import React, { useMemo, useState } from 'react';
@@ -71,7 +71,7 @@ export const HandlebarsViewer = ({
/>
);
}
return <p>Loading...</p>;
return <p>{t('Loading...')}</p>;
};
// usage: {{dateFormat my_date format="MMMM YYYY"}}