df7e64fafa
refs #10790 - Moved /core/apps into core/frontend - Moved /core/server/helpers to /core/frontend/helpers along with /core/server/services/themes - Changed helper location in overrides - Moved /core/server/services/routing to /core/frontend/services - Moved /core/server/services/url to /core/frontend/services - Moved /core/server/data/meta to /core/frontend/meta - Moved /core/server/services/rss to /core/frontend/services - Moved /core/server/data/xml to /core/frontend/services
22 lines
524 B
JavaScript
22 lines
524 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/
|
|
|
|
var proxy = require('./proxy'),
|
|
i18n = proxy.i18n,
|
|
SafeString = proxy.SafeString;
|
|
|
|
module.exports = function lang() {
|
|
return new SafeString(i18n.locale());
|
|
};
|