-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed the rest part of lang bugs, added multilang test
- Loading branch information
Alexej Yaroshevich
committed
Feb 13, 2015
1 parent
1fc982c
commit 31dbb31
Showing
15 changed files
with
96 additions
and
24 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
image: { | ||
title: 'Скачать картинку' | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
var path = require('path'); | ||
var rootPath = path.join(__dirname, '..', '..', '..'); | ||
|
||
module.exports = function (config) { | ||
config.includeConfig(rootPath); | ||
|
||
var tmplSpecs = config.module('enb-bem-tmpl-specs').createConfigurator('tmpl-specs'); | ||
|
||
tmplSpecs.configure({ | ||
destPath: 'tmpl-specs', | ||
levels: ['blocks'], | ||
langs: ['en', 'ru'], | ||
sourceLevels: [ | ||
{ path: '../libs/bem-core/common.blocks', check: false }, | ||
{ path: '../blocks', check: true }, | ||
{ path: 'blocks', check: true } | ||
], | ||
coverage: true, | ||
engines: { | ||
'BH': { | ||
tech: 'enb-bh/techs/bh-server-include', | ||
options: { | ||
sourcemap: true, | ||
jsAttrName: 'data-bem', | ||
jsAttrScheme: 'json' | ||
} | ||
}, | ||
'BEMHTML dev': { | ||
tech: 'enb-bemxjst/techs/bemhtml-old', | ||
options: { devMode: true } | ||
}, | ||
'BEMHTML prod': { | ||
tech: 'enb-bemxjst/techs/bemhtml-old', | ||
options: { devMode: false } | ||
} | ||
} | ||
}); | ||
}; |
5 changes: 5 additions & 0 deletions
5
examples/silly-multilang/blocks/image/image.tmpl-specs/10-simple.en.bemjson.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
({ | ||
block : 'image', | ||
url : 'download.svg', | ||
alt : 'Download' | ||
}) |
1 change: 1 addition & 0 deletions
1
examples/silly-multilang/blocks/image/image.tmpl-specs/10-simple.en.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<img alt="Download" class="image" src="download.svg" title="Download image" /> |
5 changes: 5 additions & 0 deletions
5
examples/silly-multilang/blocks/image/image.tmpl-specs/10-simple.ru.bemjson.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
({ | ||
block : 'image', | ||
url : 'download.svg', | ||
alt : 'Скачать' | ||
}) |
1 change: 1 addition & 0 deletions
1
examples/silly-multilang/blocks/image/image.tmpl-specs/10-simple.ru.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<img alt="Скачать" class="image" src="download.svg" title="Скачать картинку" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters