mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 12:53:13 +03:00
35e3e0708c
- The proxy is not a helper, we want the helpers folder to only include helpers - The proxy is also meant to be the interface to Ghost for the helpers, and we want to enforce that - This is a small step on the way
20 lines
501 B
JavaScript
20 lines
501 B
JavaScript
// # 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/
|
|
|
|
const {SafeString, themeI18n} = require('../services/proxy');
|
|
|
|
module.exports = function lang() {
|
|
return new SafeString(themeI18n.locale());
|
|
};
|