diff --git a/README.md b/README.md index ee47214..efa6742 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ Bridget supports the following languages: - Deutsch - Spanish - Italian +- Tamil - [Contribute with a new language](https://github.com/Sped0n/bridget/pulls) ## Credits diff --git a/assets/scss/_core/_font.scss b/assets/scss/_core/_font.scss index 6271bfd..08ec785 100644 --- a/assets/scss/_core/_font.scss +++ b/assets/scss/_core/_font.scss @@ -55,3 +55,11 @@ font-style: normal; font-display: swap; } + +@font-face { + font-family: 'Noto Sans'; + src: url('/lib/fonts/NotoSansTamil-Regular.woff2') format('woff2'); + font-weight: 400; + font-style: normal; + font-display: swap; +} diff --git a/exampleSite/config/_default/hugo.toml b/exampleSite/config/_default/hugo.toml index 681320f..a62aa97 100644 --- a/exampleSite/config/_default/hugo.toml +++ b/exampleSite/config/_default/hugo.toml @@ -18,6 +18,7 @@ enableRobotsTXT = true # * zh-hk zh-tw zh-mo (powered by Noto Sans TC) # * ja (powered by Noto Sans JP) # * ko (powered by Noto Sans KR) +# * ta (powered by Noto Sans TA) defaultContentLanguage = 'en' # theme as module diff --git a/i18n/ta.toml b/i18n/ta.toml new file mode 100644 index 0000000..4b9236f --- /dev/null +++ b/i18n/ta.toml @@ -0,0 +1,12 @@ +[next] +other = "அடுத்தது" +[prev] +other = "முந்தையது" +[close] +other = "வெளியே செல்ல" +[threshold] +other = "எல்லை" +[404] +other = "பக்கம் காணப்படவில்லை" +[loading] +other = "பதிவேற்றம் நடக்கிறது..." diff --git a/layouts/partials/head/link.html b/layouts/partials/head/link.html index 0ea9bfb..49b1f47 100644 --- a/layouts/partials/head/link.html +++ b/layouts/partials/head/link.html @@ -60,4 +60,12 @@ as="font" crossorigin /> +{{- else if (partial "function/langCode.html" (slice "ta")) -}} + + {{- end -}} diff --git a/static/lib/fonts/NotoSansTamil-Regular.woff2 b/static/lib/fonts/NotoSansTamil-Regular.woff2 new file mode 100644 index 0000000..d01a009 Binary files /dev/null and b/static/lib/fonts/NotoSansTamil-Regular.woff2 differ