fix(plugin-workflow): date scope variable locale (#5919)

This commit is contained in:
Junyi 2024-12-22 15:04:36 +08:00 committed by GitHub
parent c1bfec894a
commit 40c0d1d45a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,107 +134,107 @@ export default class PluginWorkflowClient extends Plugin {
{
key: 'yesterday',
value: 'yesterday',
label: `{{t("Yesterday", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Yesterday")}}`,
},
{
key: 'today',
value: 'today',
label: `{{t("Today", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Today")}}`,
},
{
key: 'tomorrow',
value: 'tomorrow',
label: `{{t("Tomorrow", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Tomorrow")}}`,
},
{
key: 'lastWeek',
value: 'lastWeek',
label: `{{t("Last week", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Last week")}}`,
},
{
key: 'thisWeek',
value: 'thisWeek',
label: `{{t("This week", { ns: "${NAMESPACE}" })}}`,
label: `{{t("This week")}}`,
},
{
key: 'nextWeek',
value: 'nextWeek',
label: `{{t("Next week", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Next week")}}`,
},
{
key: 'lastMonth',
value: 'lastMonth',
label: `{{t("Last month", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Last month")}}`,
},
{
key: 'thisMonth',
value: 'thisMonth',
label: `{{t("This month", { ns: "${NAMESPACE}" })}}`,
label: `{{t("This month")}}`,
},
{
key: 'nextMonth',
value: 'nextMonth',
label: `{{t("Next month", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Next month")}}`,
},
{
key: 'lastQuarter',
value: 'lastQuarter',
label: `{{t("Last quarter", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Last quarter")}}`,
},
{
key: 'thisQuarter',
value: 'thisQuarter',
label: `{{t("This quarter", { ns: "${NAMESPACE}" })}}`,
label: `{{t("This quarter")}}`,
},
{
key: 'nextQuarter',
value: 'nextQuarter',
label: `{{t("Next quarter", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Next quarter")}}`,
},
{
key: 'lastYear',
value: 'lastYear',
label: `{{t("Last year", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Last year")}}`,
},
{
key: 'thisYear',
value: 'thisYear',
label: `{{t("This year", { ns: "${NAMESPACE}" })}}`,
label: `{{t("This year")}}`,
},
{
key: 'nextYear',
value: 'nextYear',
label: `{{t("Next year", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Next year")}}`,
},
{
key: 'last7Days',
value: 'last7Days',
label: `{{t("Last 7 days", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Last 7 days")}}`,
},
{
key: 'next7Days',
value: 'next7Days',
label: `{{t("Next 7 days", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Next 7 days")}}`,
},
{
key: 'last30Days',
value: 'last30Days',
label: `{{t("Last 30 days", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Last 30 days")}}`,
},
{
key: 'next30Days',
value: 'next30Days',
label: `{{t("Next 30 days", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Next 30 days")}}`,
},
{
key: 'last90Days',
value: 'last90Days',
label: `{{t("Last 90 days", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Last 90 days")}}`,
},
{
key: 'next90Days',
value: 'next90Days',
label: `{{t("Next 90 days", { ns: "${NAMESPACE}" })}}`,
label: `{{t("Next 90 days")}}`,
},
],
});