dieren: primarily dutch page language
[sheet.git] / common.inc.plp
index 898e8bbcd5dd24774d6a32f166f14dae0def9fee..6ea11976106b6363bd8b0d88dfca1b267cae6476 100644 (file)
@@ -133,6 +133,7 @@ sub Html {
        # default fallbacks
        $meta->{stylesheet} ||= [qw( light dark circus mono red )];
        $meta->{charset} ||= 'utf-8';
+       $meta->{lang} ||= 'en';
 
        # convert options to arrays
        ref $_ eq 'ARRAY' or $_ = [$_]
@@ -161,7 +162,7 @@ sub Html {
        PLP_START {
                # leading output
                say '<!DOCTYPE html>';
-               say '<html lang="en">';
+               say qq(<html lang="$meta->{lang}">);
                say '';
                say '<head>';
                say sprintf '<meta http-equiv="content-type" content="%s">', $_