diff --git a/README.md b/README.md index c3e0a9c..40ac61a 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,9 @@ PWA_APP_ICONS = [ '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`. diff --git a/pwa/app_settings.py b/pwa/app_settings.py index d593619..a50593b 100644 --- a/pwa/app_settings.py +++ b/pwa/app_settings.py @@ -20,5 +20,7 @@ PWA_APP_ICONS = getattr(settings, 'PWA_APP_ICONS', [ 'sizes': '160x160' } ]) +PWA_APP_DIR = getattr(settings, 'PWA_APP_DIR', 'auto') +PWA_APP_LANG = getattr(settings, 'PWA_APP_LANG', 'en-US') diff --git a/pwa/templates/manifest.json b/pwa/templates/manifest.json index aac25e7..24c5fd0 100644 --- a/pwa/templates/manifest.json +++ b/pwa/templates/manifest.json @@ -7,5 +7,7 @@ "display": {{ PWA_APP_DISPLAY|js }}, "background_color": {{ PWA_APP_BACKGROUND_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 }} }