2018-01-09 16:50:57 +03:00
|
|
|
// # lang helper
|
|
|
|
// {{lang}} gives the current language tag
|
|
|
|
// Usage example: <html lang="{{lang}}">
|
|
|
|
//
|
|
|
|
// Examples of language tags from RFC 5646:
|
|
|
|
// de (German)
|
|
|
|
// fr (French)
|
|
|
|
// ja (Japanese)
|
|
|
|
// en-US (English as used in the United States)
|
|
|
|
//
|
|
|
|
// Standard:
|
|
|
|
// Language tags in HTML and XML
|
|
|
|
// https://www.w3.org/International/articles/language-tags/
|
|
|
|
|
2020-04-08 18:56:37 +03:00
|
|
|
const {SafeString, themeI18n} = require('../services/proxy');
|
2018-01-09 16:50:57 +03:00
|
|
|
|
|
|
|
module.exports = function lang() {
|
2020-03-19 17:07:20 +03:00
|
|
|
return new SafeString(themeI18n.locale());
|
2018-01-09 16:50:57 +03:00
|
|
|
};
|