feat(formatters): Add custom d3-time-format locale (#24263)

This commit is contained in:
Matheus Batista
2024-06-10 15:24:33 -03:00
committed by GitHub
parent 8e15d4807f
commit 024cfd86e4
34 changed files with 913 additions and 190 deletions

View File

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import { smartDateFormatter, t } from '@superset-ui/core';
import { SMART_DATE_ID, t } from '@superset-ui/core';
import {
ControlPanelConfig,
ControlSubSectionHeader,
@@ -144,7 +144,7 @@ const config: ControlPanelConfig = {
renderTrigger: true,
choices: D3_TIME_FORMAT_OPTIONS,
description: D3_FORMAT_DOCS,
default: smartDateFormatter.id,
default: SMART_DATE_ID,
},
},
],