luigi
luigi copied to clipboard
Extend the Language API for User Settings
Follow up of this ticket
There should be a possibility to configure whether the client wants to show the value stored under 'options' array or not:
language: { label: 'Language & Region', sublabel: 'EN | Time Format: 12h', icon: '/assets/github-logo.png', title: 'Language & Region', settings: { language: { type: 'enum', label: 'Language and Region', placeholder: 'Language and Region', options: [{ value: 'de', label: 'Deutsch (de)' }, { value: 'en', label: 'English (en)' }, 'Français', '简体中文'], description: 'After you save your settings, the browser will refresh for the new language to take effect.' }, date: { type: 'string', label: 'Date Format', placeholder: 'DD-MM-YYYY' }, time: { type: 'enum', style: 'button', label: 'Time Format', options: ['12 h', '24 h'] } } },
- If a client wants to show the value there should a renderer option of how exactly? Centered, on the right or on the left or in brackets or under a slash etc. ?
P.S. Keep in mind how external clients might want to use this and how it can be configured to fulfill their needs.