Welcome to mirror list, hosted at ThFree Co, Russian Federation.

country-code.html « helpers « partials « layouts - github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c00c4e7291380ec24d0f279a6752406efa5f721e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{ $languageCode:= .Lang }}
{{/*  by default the language code and the country code are same  */}}
{{ $countryCode:= $languageCode }}

{{/*  language code and country code are not same for some countries. we need to fix them.  */}}
{{ if eq $languageCode "en" }}
   {{ $countryCode = "gb" }}
{{ else if  eq $languageCode "bn" }}
    {{ $countryCode = "bd" }}
{{ end }}

{{/*  return the country code  */}}
{{ return $countryCode }}