test(compiler): test i18n explicit id

closes #13272
This commit is contained in:
maxime-allex
2016-12-06 15:04:59 +01:00
committed by Victor Berchet
parent 562f7a2f8b
commit 56c361ff6a
7 changed files with 154 additions and 59 deletions
@@ -40,7 +40,8 @@ class _I18nVisitor implements html.Visitor {
private _expressionParser: ExpressionParser,
private _interpolationConfig: InterpolationConfig) {}
public toI18nMessage(nodes: html.Node[], meaning: string, description: string, id: string): i18n.Message {
public toI18nMessage(nodes: html.Node[], meaning: string, description: string, id: string):
i18n.Message {
this._isIcu = nodes.length == 1 && nodes[0] instanceof html.Expansion;
this._icuDepth = 0;
this._placeholderRegistry = new PlaceholderRegistry();