Skip to content

Commit

Permalink
Merge pull request #899 from dhis2/fix/maintenance
Browse files Browse the repository at this point in the history
fix: update category order, add new relative period
  • Loading branch information
janhenrikoverland authored Oct 28, 2021
2 parents bc02051 + 03b4c31 commit 07f0ec2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/settingsCategories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import i18n from '@dhis2/d2-i18n'

export const categoryOrder = [
'general',
'analytics',
'server',
'appearance',
'email',
'access',
'calendar',
'import',
'sync',
'monitoring',
'oauth2',
]

Expand Down
31 changes: 16 additions & 15 deletions src/settingsKeyMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,35 +119,36 @@ const settingsKeyMapping = {
label: i18n.t('Default relative period for analysis'),
type: 'dropdown',
options: {
THIS_WEEK: i18n.t('This week'),
LAST_WEEK: i18n.t('Last week'),
LAST_4_WEEKS: i18n.t('Last 4 weeks'),
LAST_12_WEEKS: i18n.t('Last 12 weeks'),
LAST_52_WEEKS: i18n.t('Last 52 weeks'),
THIS_MONTH: i18n.t('This month'),
LAST_MONTH: i18n.t('Last month'),
MONTHS_THIS_YEAR: i18n.t('Months this year'),
MONTHS_LAST_YEAR: i18n.t('Months last year'),
LAST_3_MONTHS: i18n.t('Last 3 months'),
LAST_6_MONTHS: i18n.t('Last 6 months'),
LAST_12_MONTHS: i18n.t('Last 12 months'),
THIS_BIMONTH: i18n.t('This bi-month'),
LAST_BIMONTH: i18n.t('Last bi-month'),
LAST_6_BIMONTHS: i18n.t('Last 6 bi-months'),
THIS_QUARTER: i18n.t('This quarter'),
LAST_QUARTER: i18n.t('Last quarter'),
QUARTERS_THIS_YEAR: i18n.t('Quarters this year'),
QUARTERS_LAST_YEAR: i18n.t('Quarters last year'),
LAST_4_QUARTERS: i18n.t('Last 4 quarters'),
THIS_SIX_MONTH: i18n.t('This six-month'),
LAST_SIX_MONTH: i18n.t('Last six-month'),
MONTHS_THIS_YEAR: i18n.t('Months this year'),
QUARTERS_THIS_YEAR: i18n.t('Quarters this year'),
LAST_2_SIXMONTHS: i18n.t('Last 2 six-months'),
THIS_YEAR: i18n.t('This year'),
MONTHS_LAST_YEAR: i18n.t('Months last year'),
QUARTERS_LAST_YEAR: i18n.t('Quarters last year'),
LAST_YEAR: i18n.t('Last year'),
LAST_5_YEARS: i18n.t('Last 5 years'),
LAST_12_MONTHS: i18n.t('Last 12 months'),
LAST_6_MONTHS: i18n.t('Last 6 months'),
LAST_3_MONTHS: i18n.t('Last 3 months'),
LAST_6_BIMONTHS: i18n.t('Last 6 bi-months'),
LAST_4_QUARTERS: i18n.t('Last 4 quarters'),
LAST_2_SIXMONTHS: i18n.t('Last 2 six-months'),
LAST_10_YEARS: i18n.t('Last 10 years'),
THIS_FINANCIAL_YEAR: i18n.t('This financial year'),
LAST_FINANCIAL_YEAR: i18n.t('Last financial year'),
LAST_5_FINANCIAL_YEARS: i18n.t('Last 5 financial years'),
THIS_WEEK: i18n.t('This week'),
LAST_WEEK: i18n.t('Last week'),
LAST_4_WEEKS: i18n.t('Last 4 weeks'),
LAST_12_WEEKS: i18n.t('Last 12 weeks'),
LAST_52_WEEKS: i18n.t('Last 52 weeks'),
},
},
keyHideDailyPeriods: {
Expand Down

0 comments on commit 07f0ec2

Please sign in to comment.