bundles/basic: support creating additional locales
This commit is contained in:
parent
d344664fa1
commit
614bdf9dec
5 changed files with 11 additions and 7 deletions
|
@ -1 +1 @@
|
|||
LANG=${node.metadata['locale']}
|
||||
LANG=en_US.UTF-8
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
${node.metadata['locale']} ${node.metadata['locale'].split('.')[-1]}
|
||||
en_US.UTF-8 UTF-8
|
||||
|
||||
% for locale in sorted(node.metadata.get('locales', set())):
|
||||
${locale} ${locale.split('.')[-1]}
|
||||
% endfor
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
|
||||
files = {
|
||||
'/etc/default/locale': {
|
||||
'content_type': 'mako',
|
||||
'triggers': {
|
||||
'needs': {
|
||||
'action:locale-gen',
|
||||
},
|
||||
},
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
defaults = {
|
||||
'locale': 'en_US.UTF-8',
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue