Add the settings dir(Specifies the primary text direction for the name, short_name, and description) and the lang(Specifies the primary language for the values in the name and short_name) to manifest.json options
This commit is contained in:
@@ -44,6 +44,9 @@ PWA_APP_ICONS = [
|
|||||||
'sizes': '160x160'
|
'sizes': '160x160'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
PWA_APP_DIR = 'ltr'
|
||||||
|
PWA_APP_LANG = 'en-US'
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
All settings are optional, and the app will work fine with its internal defaults. Highly recommend setting at least `PWA_APP_NAME` and `PWA_APP_DESCRIPTION`.
|
All settings are optional, and the app will work fine with its internal defaults. Highly recommend setting at least `PWA_APP_NAME` and `PWA_APP_DESCRIPTION`.
|
||||||
|
|||||||
@@ -20,5 +20,7 @@ PWA_APP_ICONS = getattr(settings, 'PWA_APP_ICONS', [
|
|||||||
'sizes': '160x160'
|
'sizes': '160x160'
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
PWA_APP_DIR = getattr(settings, 'PWA_APP_DIR', 'auto')
|
||||||
|
PWA_APP_LANG = getattr(settings, 'PWA_APP_LANG', 'en-US')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,5 +7,7 @@
|
|||||||
"display": {{ PWA_APP_DISPLAY|js }},
|
"display": {{ PWA_APP_DISPLAY|js }},
|
||||||
"background_color": {{ PWA_APP_BACKGROUND_COLOR|js }},
|
"background_color": {{ PWA_APP_BACKGROUND_COLOR|js }},
|
||||||
"theme_color": {{ PWA_APP_THEME_COLOR|js }},
|
"theme_color": {{ PWA_APP_THEME_COLOR|js }},
|
||||||
"icons": {{ PWA_APP_ICONS|js }}
|
"icons": {{ PWA_APP_ICONS|js }},
|
||||||
|
"dir": {{ PWA_APP_DIR|js }},
|
||||||
|
"lang": {{ PWA_APP_LANG|js }}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user