Interface IcuTemplateDefinition


public interface IcuTemplateDefinition
Contains a JsMessage representing an ICU template message and information about the goog.i18n.messages.declareIcuTemplate() call from which it was extracted.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    The JsMessage object built from the `declareIcuTemplate()` call.
    The RHS node of the message assignment statement.
    The Node representing the message text template.
  • Method Details Link icon

    • getMessage Link icon

      JsMessage getMessage()
      The JsMessage object built from the `declareIcuTemplate()` call.
    • getMessageNode Link icon

      Node getMessageNode()
      The RHS node of the message assignment statement.

      e.g. The declareIcuTemplate() call in:

      
         const MSG_HELLO =
             declareIcuTemplate(
                 'Hello, {NAME}.',
                 {
                   description: 'A greeting',
                   example: {
                     'NAME': 'Jane'
                   });
       
    • getTemplateTextNode Link icon

      Node getTemplateTextNode()
      The Node representing the message text template.

      This node may be a literal string or a concatenation of literal strings.