Skip to content
Snippets Groups Projects
Commit ff803331 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

move test templates into test/ so strings within will not be extracted and sent to translators

parent afae125d
No related branches found
No related tags found
No related merge requests found
...@@ -199,11 +199,12 @@ exports.setup = function(app) { ...@@ -199,11 +199,12 @@ exports.setup = function(app) {
}); });
// l10n test template // l10n test template
var testPath = path.join(__dirname, '..', '..', 'tests', 'i18n_test_templates');
app.get('/i18n_test', function(req, res) { app.get('/i18n_test', function(req, res) {
renderCachableView(req, res, 'i18n_test.ejs', { layout: false, title: 'l10n testing title' }); renderCachableView(req, res, path.join(testPath, 'i18n_test.ejs'), { layout: false, title: 'l10n testing title' });
}); });
app.get('/i18n_fallback_test', function(req, res) { app.get('/i18n_fallback_test', function(req, res) {
renderCachableView(req, res, 'i18n_fallback_test.ejs', { layout: false, title: 'l10n testing title' }); renderCachableView(req, res, path.join(testPath, 'i18n_fallback_test.ejs'), { layout: false, title: 'l10n testing title' });
}); });
} else { } else {
// this is stage or production, explicitly disable all resources under /test // this is stage or production, explicitly disable all resources under /test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment