Permalink
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (19 sloc) 489 Bytes
metadata:
title: User language from browser (restricted)
short title: Browser language (restricted)
documentation: "https://docassemble.org/docs/functions.html#language_from_browser"
example start: 2
example end: 2
---
modules:
- docassemble.base.util
---
question: |
% if language_from_browser('es', 'fr') is None:
I guess you do not speak
Spanish or French.
% else:
Great! Your language code is
`${ language_from_browser('es', 'fr') }`.
% endif
mandatory: True