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 Detail

      • getMessage

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

        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

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

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