Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #104 from Shinsina/default-lang-fallback
Browse files Browse the repository at this point in the history
Set default fallback value for lang if not set
  • Loading branch information
zarathustra323 authored Jun 10, 2021
2 parents 0fc0d61 + c0fb300 commit 4d4a9c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/marko-web-inquiry/components/form.marko
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $ const withDescription = defaultValue(input.withDescription, true);

$ const blockName = "inquiry-form";
$ const { RECAPTCHA_SITE_KEY } = require('../env');
$ const lang = input.lang;
$ const lang = defaultValue(input.lang, "en");

<if(inquiry.enabled)>
<marko-web-block name=blockName modifiers=input.modifiers>
Expand Down

0 comments on commit 4d4a9c9

Please sign in to comment.