{"_id":"format-message-interpret","_rev":"35-077a195aceef74c5b49433199ec7525f","name":"format-message-interpret","description":"Convert format-message-parse ast to a function","dist-tags":{"latest":"6.2.4","next":"6.0.0-alpha.2"},"versions":{"4.0.0":{"name":"format-message-interpret","version":"4.0.0","description":"Convert parsed format-message ast to function","author":{"name":"Andy VanWagoner","email":"thetalecrafter@gmail.com","url":"https://thetalecrafter.com/"},"homepage":"https://github.com/format-message/format-message","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message"],"dependencies":{"format-message-formats":"^4.0.0","lookup-closest-locale":"^4.0.0"},"_id":"format-message-interpret@4.0.0","scripts":{},"_shasum":"1fc01e8cc18779ed4bf48b10b8b6760999a96040","_from":".","_npmVersion":"3.3.10","_nodeVersion":"5.0.0","_npmUser":{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"dist":{"shasum":"1fc01e8cc18779ed4bf48b10b8b6760999a96040","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-4.0.0.tgz","integrity":"sha512-jYfuoy4mJWWhxNCMjLB/owuOm8Ca9d9xIYgJ5yGG6YS8X39Xudr07yiDcx/7Y/Nq36svqE5wsr/Luo96g+7lTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFCaYEwVnWSK3HKloGr6N0bCkFQHp8+y3BKccpprZ+UrAiA1HngxjqlvlqnyfFE8bQYLJsoiN3/wpoDlrHMoslz52g=="}]},"directories":{}},"4.0.1":{"name":"format-message-interpret","version":"4.0.1","description":"Convert parsed format-message ast to function","author":{"name":"Andy VanWagoner","email":"thetalecrafter@gmail.com","url":"https://thetalecrafter.com/"},"homepage":"https://github.com/format-message/format-message","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message"],"dependencies":{"format-message-formats":"^4.0.0","lookup-closest-locale":"^4.0.0"},"_id":"format-message-interpret@4.0.1","scripts":{},"_shasum":"a36920b1026a3b30b9320a5a9d604e58e0ba5491","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"thetalecrafter","email":"andy@thetalecrafter.com"},"dist":{"shasum":"a36920b1026a3b30b9320a5a9d604e58e0ba5491","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-4.0.1.tgz","integrity":"sha512-mZdgt7P0F9MEnBs3I4gv2qohtNjATzuaR0NX4XQNhy3Xofs5S2gbEaUJRjudvraXT7LAreFJ0lYr66RKyZFobA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKHSIUxsbZbR6efUDWwQHAumH+dPT0eFKxbQwgZebLCQIgViLLflXSv9rqcQPQQEEfko6ZQ2889tBI9UICQsVfjeQ="}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/format-message-interpret-4.0.1.tgz_1471631777011_0.042627140413969755"},"directories":{}},"5.0.0-beta.8":{"name":"format-message-interpret","version":"5.0.0-beta.8","description":"Convert parsed format-message ast to function","author":{"name":"Andy VanWagoner","email":"thetalecrafter@gmail.com","url":"https://thetalecrafter.com/"},"homepage":"https://github.com/format-message/format-message","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message"],"dependencies":{"format-message-formats":"^4.0.0","lookup-closest-locale":"^5.0.0-beta.8"},"_id":"format-message-interpret@5.0.0-beta.8","scripts":{},"_shasum":"a586d94c5668f90a22d873fca10dcaca49ef80c5","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.6.0","_npmUser":{"name":"thetalecrafter","email":"andy@thetalecrafter.com"},"dist":{"shasum":"a586d94c5668f90a22d873fca10dcaca49ef80c5","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-5.0.0-beta.8.tgz","integrity":"sha512-CQ5iydmG4gjKJaAmk+JIEKaE11DyRJMwl6+iQ5I1Zhxoqch0PrXOe2GWBWG+7hjvNcqdodOcr03xfJj/R6bu0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnjXi0eHGB12n6aoUI+yixkvafYQJpFKSG3dz1x0qrXAIgMI+2Hmv9kiO0nK8uQaT0SUDEDJtjQEOyV5Dc7X2H7Js="}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/format-message-interpret-5.0.0-beta.8.tgz_1474916187428_0.011741650057956576"},"directories":{}},"5.0.0-beta.9":{"name":"format-message-interpret","version":"5.0.0-beta.9","description":"Convert parsed format-message ast to function","author":{"name":"Andy VanWagoner","email":"thetalecrafter@gmail.com","url":"https://thetalecrafter.com/"},"homepage":"https://github.com/format-message/format-message","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message"],"dependencies":{"format-message-formats":"^4.0.0","lookup-closest-locale":"^5.0.0-beta.9"},"_id":"format-message-interpret@5.0.0-beta.9","scripts":{},"_shasum":"febb5a945c7012e2729c7c3e3a0464ae6fa17913","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.6.0","_npmUser":{"name":"thetalecrafter","email":"andy@thetalecrafter.com"},"dist":{"shasum":"febb5a945c7012e2729c7c3e3a0464ae6fa17913","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-5.0.0-beta.9.tgz","integrity":"sha512-y5KBvzoMXUNRz0zLlBU04b6rE9ntPqE3vmZu1hDESSn5bWt2gRRnQzSkF3A1H6atmfOT+8pgGXh75tUqIYVsBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH6Dta7aAyZVmnNZxzGhln9V5d6z6AioThs8fqlqdWayAiEA5Mo3WvJW2EtzJk68+CcoYVyomxKO4M9SHFLBTBAJjU8="}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/format-message-interpret-5.0.0-beta.9.tgz_1474917066658_0.2757686555851251"},"directories":{}},"5.0.0-beta.10":{"name":"format-message-interpret","version":"5.0.0-beta.10","description":"Convert parsed format-message ast to function","author":{"name":"Andy VanWagoner","email":"thetalecrafter@gmail.com","url":"https://thetalecrafter.com/"},"homepage":"https://github.com/format-message/format-message","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message"],"dependencies":{"format-message-formats":"^5.0.0-beta.10","lookup-closest-locale":"^5.0.0-beta.10"},"_id":"format-message-interpret@5.0.0-beta.10","scripts":{},"_shasum":"56708a7ab4a12240b70d07571fe706bfcea26b7a","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.6.0","_npmUser":{"name":"thetalecrafter","email":"andy@thetalecrafter.com"},"dist":{"shasum":"56708a7ab4a12240b70d07571fe706bfcea26b7a","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-5.0.0-beta.10.tgz","integrity":"sha512-Azk3+LW4fEuoNOMVjjaKm/YTMYGdNwnYHmyawWja2kXu5b9e5tWzrwX0eZI45DfsYE3tFctj66c4+XY581oEkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAzkoSDhxlz/TS2dfCTLcqIpulKREDh3yynOMtny+spcAiAYf6FOV3ch3rb2Bmp+AciMZnLWkeRJlIVCTmsbR2/9KQ=="}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/format-message-interpret-5.0.0-beta.10.tgz_1474918825226_0.026055637514218688"},"directories":{}},"5.0.0":{"name":"format-message-interpret","version":"5.0.0","description":"Convert parsed format-message ast to function","author":{"name":"Andy VanWagoner","email":"thetalecrafter@gmail.com","url":"https://thetalecrafter.com/"},"homepage":"https://github.com/format-message/format-message","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message"],"dependencies":{"format-message-formats":"^5.0.0","lookup-closest-locale":"^5.0.0"},"_id":"format-message-interpret@5.0.0","scripts":{},"_shasum":"5841b8bf43a2fbffe8a5181446e5f008361f9b70","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.6.0","_npmUser":{"name":"thetalecrafter","email":"andy@thetalecrafter.com"},"dist":{"shasum":"5841b8bf43a2fbffe8a5181446e5f008361f9b70","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-5.0.0.tgz","integrity":"sha512-5Jxwjh4vsuAhB/LF/qLpZclK2LoFNjCqgRzLYUEOZiMtRdFiCN5240SBZEIs944987z1NjZ8522G+JjwqGLiMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEOT6+rYt/7iQZiS3r8YxMQ03ebLnq5byrz9cb9CTawCAiEAgrxMqYCPZSDzIngHzA4c9yXd/MR851+ZRszeYbZ/LPM="}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/format-message-interpret-5.0.0.tgz_1475004685561_0.16841405350714922"},"directories":{}},"5.1.0":{"name":"format-message-interpret","version":"5.1.0","description":"Convert parsed format-message ast to function","author":{"name":"Andy VanWagoner","email":"thetalecrafter@gmail.com","url":"https://thetalecrafter.com/"},"homepage":"https://github.com/format-message/format-message","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message"],"dependencies":{"format-message-formats":"^5.1.0","lookup-closest-locale":"^5.1.0"},"_id":"format-message-interpret@5.1.0","scripts":{},"_shasum":"60d2f638528bde2368dd8a388227072926c12d59","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"thetalecrafter","email":"andy@thetalecrafter.com"},"dist":{"shasum":"60d2f638528bde2368dd8a388227072926c12d59","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-5.1.0.tgz","integrity":"sha512-ldWowfmy5eDbgTbNv1p2RKh6dCGgXx2ZPG3aHrrM3N3/CotDRxY1tQrYfY9QTt8iooYXQWlVtXU+1X9DxjK/Mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAqJUEN7EfOLEH7HRgu3wB/0eAmkb6zYhlwKugfnF9HCAiEAko8w0YMhHwelfN9FROClyFiYHv6rRUaVsl/cUclyaBk="}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/format-message-interpret-5.1.0.tgz_1482967670206_0.7500062806066126"},"directories":{}},"5.1.2":{"name":"format-message-interpret","version":"5.1.2","description":"Convert parsed format-message ast to function","author":{"name":"Andy VanWagoner","email":"thetalecrafter@gmail.com","url":"https://thetalecrafter.com/"},"homepage":"https://github.com/format-message/format-message","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message"],"dependencies":{"format-message-formats":"^5.1.0","lookup-closest-locale":"^5.1.0"},"_id":"format-message-interpret@5.1.2","scripts":{},"_shasum":"183471d6b8cf048d18d76606fa96a1f2b40e7938","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"thetalecrafter","email":"andy@thetalecrafter.com"},"dist":{"shasum":"183471d6b8cf048d18d76606fa96a1f2b40e7938","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-5.1.2.tgz","integrity":"sha512-oN6HdAhpdlubIUpxNLRTz8IHlI7f80j73ySdVbMl0roZE+aq0y9/vGRH/dYdjD2klyxJHBwgqKmkKNAmYlOv6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiCsTmnQR2b0RYWwE8uhR+smbkxF+CCRdAA6aMgDXO1QIgfpiv7V9kzQkKwQVPsz4XSmWMVxDmkEYvE0X6vafK7D4="}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/format-message-interpret-5.1.2.tgz_1490283372026_0.4364938277285546"},"directories":{}},"5.2.1":{"name":"format-message-interpret","version":"5.2.1","description":"Convert parsed format-message ast to function","author":{"name":"Andy VanWagoner","email":"thetalecrafter@gmail.com","url":"https://thetalecrafter.com/"},"homepage":"https://github.com/format-message/format-message","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message"],"dependencies":{"format-message-formats":"^5.1.0","lookup-closest-locale":"^5.1.0"},"_id":"format-message-interpret@5.2.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"thetalecrafter","email":"andy@thetalecrafter.com"},"dist":{"integrity":"sha512-uZMKV1YcUkq+uk4gO+x3klfV3cSBjt6pwazKomT7Mc+ns6hKn0jEnUja5p4cCkEtIgZx69tR4q1yq9Zq0T8l1A==","shasum":"7c533c1f6ce01e75a443750994bc8c2f74162e3d","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-5.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzBglvTeoRRwg5tu4niabfn/xTkjHjnI0ymEHZB8RWJQIgKM8cWpC41uJ2Io6oDo/k0IGMN1qtYgWoPFuSzfYCL/Y="}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-message-interpret-5.2.1.tgz_1509740033335_0.9502256768755615"},"directories":{}},"6.0.0-alpha.0":{"name":"format-message-interpret","version":"6.0.0-alpha.0","description":"Convert format-message-parse ast to a function","author":{"name":"Andy VanWagoner","email":"andy@thetalecrafter.com","url":"https://thetalecrafter.com/"},"homepage":"https://github.com/format-message/format-message/tree/master/packages/format-message-interpret","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message","message-format","internationalization","i18n","icu","messageformat","pluralformat","selectformat"],"dependencies":{"format-message-formats":"^6.0.0-alpha.0","lookup-closest-locale":"^6.0.0-alpha.0"},"readme":"# ![format-message-interpret][logo]\n\n> Convert format-message-parse ast to a function\n\n[![npm Version][npm-image]][npm]\n[![JS Standard Style][style-image]][style]\n[![MIT License][license-image]][LICENSE]\n\nTurns a compact format-message ast:\n```js\n[ \"You have \", [ \"numBananas\", \"plural\", 0, {\n     \"=0\": [ \"no bananas\" ],\n    \"one\": [ \"a banana\" ],\n  \"other\": [ [ '#' ], \" bananas\" ]\n} ], \" for sale.\" ]\n```\n\ninto a function:\n```js\nformat({ numBananas:0 })\n//-> \"You have no bananas for sale.\"\n```\n\nQuick Examples\n--------------\n\n`npm install format-message-interpret --save`\n\n```js\nimport parse from 'format-message-parse'\nimport interpret from 'format-message-interpret'\n\ninterpret('en', parse('Hello, {name}!'))({ name: 'Jane' })\n```\n\nAPI\n---\n\n### `interpret(locales: string | string[], ast: AST, types?: Types)`\n\nGenerate a function from an `ast`, using the formatting rules of the `locales` that accepts an arguments object, and returns a string. You can optionally pass custom `types`. Any non-standard type found in `ast` without a corresponding formatter in `types` will be treated as a simple string type.\n\n```js\ntype Types = {\n  [type: string]: (placeholder: string[], locales: string | string[]) =>\n    (value: any, args: Object) => string\n}\n```\n\n`types` is an object with each key being the name of the type as it appears in the message pattern. Each value is a function that takes the `locales`, and the `node` from the ast (like `[ 'a', 'mytype', 'style' ]`), and it returns a function that will be called with the specific `value`, and the complete arguments object. If the custom type was defined with sub-messages, those will already be converted to functions meant to be called with `args`.\n\n### `interpret.toParts(locales: string | string[], ast: AST, types?: Types)`\n\nLike, `interpret`, `interpretToParts` will generate a function accepting the message arguments. However, it will return an array of message parts, instead of a string. This is intended to help generate rich messages.\n\n```js\ninterpret.toParts('en', parse('a {b} c'))({ b: 1 }) // [ 'a ', 1, ' c' ]\ninterpret.toParts('en', parse('Click {a, element, children {here}}'), {\n  element: (locales, [ id, type, props ]) =>\n    (fn, args) => fn(props.children(args))\n})({ a: children => <a>{children}</a> })\n// [ 'Click ', <a>here</a> ]\n```\n\nLicense\n-------\n\nThis software is free to use under the MIT license. See the [LICENSE-MIT file][LICENSE] for license text and copyright information.\n\n\n[logo]: https://cdn.rawgit.com/format-message/format-message/2febdd8/logo.svg\n[npm]: https://www.npmjs.org/package/format-message-interpret\n[npm-image]: https://img.shields.io/npm/v/format-message-interpret.svg\n[style]: https://github.com/feross/standard\n[style-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n[license-image]: https://img.shields.io/npm/l/format-message.svg\n[LICENSE]: https://github.com/format-message/format-message/blob/master/LICENSE-MIT\n","readmeFilename":"README.md","_id":"format-message-interpret@6.0.0-alpha.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"thetalecrafter","email":"andy@thetalecrafter.com"},"dist":{"integrity":"sha512-O5iU5H7z7tI7oEje93S5SZlQZeOLsDUDz4QYCz+5fFBcIOnBEycJb0ZhZ++DfshPPVTv183jTyREtaaIXiziGg==","shasum":"0ddae6bf8065e297edd792476705711bd0ef57b6","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-6.0.0-alpha.0.tgz","fileCount":5,"unpackedSize":29123,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa1SRQCRA9TVsSAnZWagAAQu4QAKIPLuRX6qirjDN1Coar\nTAwqaUbqIjmWxsu8l4XKYbhu3F1g+CEdmUvYzo4wv22rRrQ57Fx+upKTvb2m\nFZc0MdMV6irQwjFkkAAes3K5oZA1Vo9TWEIeGJBaSl5meto+/Gw8J8m8ogDS\nsgjOHJrwCJlck5eKAbSn94XNthoxz/zUQYch6qYzU7LnUIPnbKfjj/8AL8Ki\n+c9OigtzAnd+9fzr9lO+GyAC+NfNepXRgqijueH6hUNhbyasmZo0zBAOsz4J\nmjP/Mhi8b2Wgg93X3m3a1uAsqQN+3935ZUXBuFyjZCtAYm2Sm7RKr0hGELf9\nXZjTxOxmSMrEGfNP8MMLrLR9700u2fd1Z1nfyqYOJtYRu/0qSoNH1VDvdsCt\nAwqUPf5He9Nt90MDJKqEMbBnIxq6rKXSTUst37MTbiJoWRih+f+VpTCMTTxs\noUHavjzFXvod8dQbfkaFHqEVp+rT91LCnLeE+/5zR/LRUkMYN/64Eino4/Xc\nVM6Ys+ettN8tBGTk/oIlAi9HtzmFqGd63MevN4C3sAIEVOTpH9XQAswr9Tu5\nHuCQWWHEtoUiPjY5YRVI/x8PorZ8uaNBbVXqFv05hAuKVlTg4Z/M0BhzWU5S\nuSH95lvuxkQ4uHx3AO/ThUJbn4vtR7yew3lkzM3A2gPgMN4r7wxrIT+DuwoJ\nG00/\r\n=7byr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBHM3pYipzukbPZZDGNGFCpCH2KEeLo86yAZXg0ARLSjAiBQLzAEfbMTeo6YmTX03SlMSq+X25CFweylNf4kr6Ibig=="}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-message-interpret_6.0.0-alpha.0_1523917903865_0.2822524365931536"},"_hasShrinkwrap":false},"6.0.0-alpha.1":{"name":"format-message-interpret","version":"6.0.0-alpha.1","description":"Convert format-message-parse ast to a function","author":{"name":"Andy VanWagoner","email":"andy@thetalecrafter.com","url":"https://thetalecrafter.com/"},"homepage":"https://github.com/format-message/format-message/tree/master/packages/format-message-interpret","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message","message-format","internationalization","i18n","icu","messageformat","pluralformat","selectformat"],"dependencies":{"format-message-formats":"^6.0.0-alpha.1","lookup-closest-locale":"^6.0.0-alpha.1"},"readme":"# ![format-message-interpret][logo]\n\n> Convert format-message-parse ast to a function\n\n[![npm Version][npm-image]][npm]\n[![JS Standard Style][style-image]][style]\n[![MIT License][license-image]][LICENSE]\n\nTurns a compact format-message ast:\n```js\n[ \"You have \", [ \"numBananas\", \"plural\", 0, {\n     \"=0\": [ \"no bananas\" ],\n    \"one\": [ \"a banana\" ],\n  \"other\": [ [ '#' ], \" bananas\" ]\n} ], \" for sale.\" ]\n```\n\ninto a function:\n```js\nformat({ numBananas:0 })\n//-> \"You have no bananas for sale.\"\n```\n\nQuick Examples\n--------------\n\n`npm install format-message-interpret --save`\n\n```js\nimport parse from 'format-message-parse'\nimport interpret from 'format-message-interpret'\n\ninterpret('en', parse('Hello, {name}!'))({ name: 'Jane' })\n```\n\nAPI\n---\n\n### `interpret(locales: string | string[], ast: AST, types?: Types)`\n\nGenerate a function from an `ast`, using the formatting rules of the `locales` that accepts an arguments object, and returns a string. You can optionally pass custom `types`. Any non-standard type found in `ast` without a corresponding formatter in `types` will be treated as a simple string type.\n\n```js\ntype Types = {\n  [type: string]: (placeholder: string[], locales: string | string[]) =>\n    (value: any, args: Object) => string\n}\n```\n\n`types` is an object with each key being the name of the type as it appears in the message pattern. Each value is a function that takes the `locales`, and the `node` from the ast (like `[ 'a', 'mytype', 'style' ]`), and it returns a function that will be called with the specific `value`, and the complete arguments object. If the custom type was defined with sub-messages, those will already be converted to functions meant to be called with `args`.\n\n### `interpret.toParts(locales: string | string[], ast: AST, types?: Types)`\n\nLike, `interpret`, `interpretToParts` will generate a function accepting the message arguments. However, it will return an array of message parts, instead of a string. This is intended to help generate rich messages.\n\n```js\ninterpret.toParts('en', parse('a {b} c'))({ b: 1 }) // [ 'a ', 1, ' c' ]\ninterpret.toParts('en', parse('Click {a, element, children {here}}'), {\n  element: (locales, [ id, type, props ]) =>\n    (fn, args) => fn(props.children(args))\n})({ a: children => <a>{children}</a> })\n// [ 'Click ', <a>here</a> ]\n```\n\nLicense\n-------\n\nThis software is free to use under the MIT license. See the [LICENSE-MIT file][LICENSE] for license text and copyright information.\n\n\n[logo]: https://cdn.rawgit.com/format-message/format-message/2febdd8/logo.svg\n[npm]: https://www.npmjs.org/package/format-message-interpret\n[npm-image]: https://img.shields.io/npm/v/format-message-interpret.svg\n[style]: https://github.com/feross/standard\n[style-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n[license-image]: https://img.shields.io/npm/l/format-message.svg\n[LICENSE]: https://github.com/format-message/format-message/blob/master/LICENSE-MIT\n","readmeFilename":"README.md","_id":"format-message-interpret@6.0.0-alpha.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"thetalecrafter","email":"andy@thetalecrafter.com"},"dist":{"integrity":"sha512-M0Yqkr72Fcxt3YnJbp6gPcrR1z5NoGzk3HET/HvoA+tf7pdjoVZf2Aik/gfb3E2HtriTCbIPm/2N3FGlMQb/2w==","shasum":"4f14bc577e267eac66d45da43182657490193c3c","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-6.0.0-alpha.1.tgz","fileCount":5,"unpackedSize":29111,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa1hkSCRA9TVsSAnZWagAAAgYQAISfsn2qrSb5gFNsLen9\npevFc/rVQqqz9BMkC9TjWJEtMYioFDGWh6tcP7lfxWJx0dJB610jyBz3gEu1\nloe1VGBScHciM0yoqulPuL+KWRmWVNabUWII3ZMUWOOELJrAhclyhOyL1bEA\nMYBZqBbC4UKQy0YDz6Tw4ZEsYhOe/UWrIVD1fsDw/5bWwPujpTjxMmJ1GFi9\nVAWYt7yzhF+CsNAxQm9UgYrLI9DROE1g0S+dU7uFVKdVRbnUxbbxtQRRLRVk\n62JSzbSN87I3b2PcsyrLloxCr6mfJfuLjijthkBfEs3Gzvb0HwSnhwb5rUx4\nl3ERTCD2Zwr0NVGPYMNG8J+m3Wm/uTTL0CE+C2OeKQEhTfBmYsx+B0hZAy8s\nNc9EUsoeC1+N8q0U2l32JE49e65y5C4JwamVpZGuVGmkMoCfWfPBD4U94cea\nTpDRWyrh+6hMfBrwhmVTNwCKsYTD5T7whkBTinD4CJVnQZt9ck1W1tnyvWK+\nzJZCWul2PAqHDLsgvJAW3oAel3Yx/VtrGMd39goreCzmQS8K3giCfbCLXAXk\nI+bOoMHcHWUeVnJY0nttGZ0RpxLMQhJs+hPjiHEXL32XVYopuxN9GjudmEOx\n3cxhLyAB2Pq8SshxpizDrhx5+ADP+BP1eq55s7OVpxi7BGKEoziR1EKoHOuM\nqxe7\r\n=aKDL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCT/PfXbDZ/Q1h5xThleTrD3qXrBN16wDfElSqWKkyn/gIhAOqzxQotFceeRmMwTCFYQtq7iO5E6Nue4BJvxrhsR4Ad"}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-message-interpret_6.0.0-alpha.1_1523980562154_0.4121869546102126"},"_hasShrinkwrap":false},"6.0.0-alpha.2":{"name":"format-message-interpret","version":"6.0.0-alpha.2","description":"Convert format-message-parse ast to a function","author":{"name":"Andy VanWagoner","email":"andy@thetalecrafter.com","url":"https://thetalecrafter.com/"},"homepage":"https://github.com/format-message/format-message/tree/master/packages/format-message-interpret","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message","message-format","internationalization","i18n","icu","messageformat","pluralformat","selectformat"],"dependencies":{"format-message-formats":"^6.0.0-alpha.2","lookup-closest-locale":"^6.0.0-alpha.2"},"readme":"# ![format-message-interpret][logo]\n\n> Convert format-message-parse ast to a function\n\n[![npm Version][npm-image]][npm]\n[![JS Standard Style][style-image]][style]\n[![MIT License][license-image]][LICENSE]\n\nTurns a compact format-message ast:\n```js\n[ \"You have \", [ \"numBananas\", \"plural\", 0, {\n     \"=0\": [ \"no bananas\" ],\n    \"one\": [ \"a banana\" ],\n  \"other\": [ [ '#' ], \" bananas\" ]\n} ], \" for sale.\" ]\n```\n\ninto a function:\n```js\nformat({ numBananas:0 })\n//-> \"You have no bananas for sale.\"\n```\n\nQuick Examples\n--------------\n\n`npm install format-message-interpret --save`\n\n```js\nimport parse from 'format-message-parse'\nimport interpret from 'format-message-interpret'\n\ninterpret('en', parse('Hello, {name}!'))({ name: 'Jane' })\n```\n\nAPI\n---\n\n### `interpret(locales: string | string[], ast: AST, types?: Types)`\n\nGenerate a function from an `ast`, using the formatting rules of the `locales` that accepts an arguments object, and returns a string. You can optionally pass custom `types`. Any non-standard type found in `ast` without a corresponding formatter in `types` will be treated as a simple string type.\n\n```js\ntype Types = {\n  [type: string]: (placeholder: string[], locales: string | string[]) =>\n    (value: any, args: Object) => string\n}\n```\n\n`types` is an object with each key being the name of the type as it appears in the message pattern. Each value is a function that takes the `locales`, and the `node` from the ast (like `[ 'a', 'mytype', 'style' ]`), and it returns a function that will be called with the specific `value`, and the complete arguments object. If the custom type was defined with sub-messages, those will already be converted to functions meant to be called with `args`.\n\n### `interpret.toParts(locales: string | string[], ast: AST, types?: Types)`\n\nLike, `interpret`, `interpretToParts` will generate a function accepting the message arguments. However, it will return an array of message parts, instead of a string. This is intended to help generate rich messages.\n\n```js\ninterpret.toParts('en', parse('a {b} c'))({ b: 1 }) // [ 'a ', 1, ' c' ]\ninterpret.toParts('en', parse('Click {a, element, children {here}}'), {\n  element: (locales, [ id, type, props ]) =>\n    (fn, args) => fn(props.children(args))\n})({ a: children => <a>{children}</a> })\n// [ 'Click ', <a>here</a> ]\n```\n\nLicense\n-------\n\nThis software is free to use under the MIT license. See the [LICENSE-MIT file][LICENSE] for license text and copyright information.\n\n\n[logo]: https://cdn.rawgit.com/format-message/format-message/2febdd8/logo.svg\n[npm]: https://www.npmjs.org/package/format-message-interpret\n[npm-image]: https://img.shields.io/npm/v/format-message-interpret.svg\n[style]: https://github.com/feross/standard\n[style-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n[license-image]: https://img.shields.io/npm/l/format-message.svg\n[LICENSE]: https://github.com/format-message/format-message/blob/master/LICENSE-MIT\n","readmeFilename":"README.md","_id":"format-message-interpret@6.0.0-alpha.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"thetalecrafter","email":"andy@thetalecrafter.com"},"dist":{"integrity":"sha512-hiCqtUvfKhmpABvXydkVMsOTvYBSv6VT/vRhVE/CcPoibq5Hjkd1d3aiz/zzHJN0r6iHqE/NATGVUZDzFVTkzA==","shasum":"83766c0965b2d773b91597520662b65982dd1156","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-6.0.0-alpha.2.tgz","fileCount":6,"unpackedSize":33939,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa18SWCRA9TVsSAnZWagAATX4P/28Ti3ebh5J0v4WUk1LT\n8+8AO7sp1lt+/CkouoxGk0eM6E/fPK35PYu98g9NyHuL0PDT8Z7465Zw/4oC\nyJtxeCsqSE20vOdPukYW9q1fGQHU6zev+foMYFA5NxAFSNUnMxCZgWS22EKH\nxJ+80A6WF5DM/C4ilr9YIkgZBLNFW4dBAetV8LxnibJNi5PmOXHTE9mUPPNe\nIvk+GVQ0EE9AXfVC/kICJjdonnpeTe9mQQSCwA/NhS/AyyorDLTow3ti/QQp\nzzNJoYZA6CFdaiKMqm7d4EHBl/iqF3y7ZJZeTz07gG7ePYBXL2vHMnfkBGvQ\nP06wueJ4AZpgu3X7XVz3o8wzJRYbZYSojFBTDxQsTISVOTPmcT6ig7GRBNPc\nXGWYmEJ6oJQNPbyciNQX/wkho4mSRrD6pRdtnsV9stXgmLFJt9nxo0NynK4H\nwhQdxdm6P4LLqM/1I0CjFG4Qf0Br5WI6Vzuuo0XzSypGaYaQzsc7qpYoDg5l\nkT9DnZJrDHhE1wL/+EYbnpvp2S8vlxp3ESf4Ctp3YNjP86qCoQiuOsZBRrgN\nqzMYNV+Ha54Z4lnMPNcF+Msd6/K7gfD4o/9lm7BwQpqR2JIN03zT7Odko8YI\nXxHDFJ9oMOZ4QgtWxfnfO1OTjVpECy2CoznWaRMW6ZAjpUPfuAW+1+Ojl4Rm\nQl7/\r\n=oAZ1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH0VVg/5ln1W8+MYSQt0l0EW6+bbZtQKNq3OToJ0cO00AiAUSdZGv93IUKPD9J6dQLqAgKyGM+V3GL8WUHvzbcgCXw=="}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-message-interpret_6.0.0-alpha.2_1524090005340_0.2662930726886943"},"_hasShrinkwrap":false},"6.0.0":{"name":"format-message-interpret","version":"6.0.0","description":"Convert format-message-parse ast to a function","author":{"name":"Andy VanWagoner","email":"andy@thetalecrafter.com","url":"https://thetalecrafter.com/"},"homepage":"https://github.com/format-message/format-message/tree/master/packages/format-message-interpret","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message","message-format","internationalization","i18n","icu","messageformat","pluralformat","selectformat"],"dependencies":{"format-message-formats":"^6.0.0","lookup-closest-locale":"^6.0.0"},"_id":"format-message-interpret@6.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"thetalecrafter","email":"andy@thetalecrafter.com"},"dist":{"integrity":"sha512-Iw5lmipw83TXPQSvA7vkuPJh9w8au0X6bbHtCZMbozOAJ0LX9LX/iZ2kBlIf1FY9Augvn7hO4dlXV6iDkOVMog==","shasum":"c1a6f500b55137a1d6a0c40db72987fbe1d8b081","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-6.0.0.tgz","fileCount":6,"unpackedSize":33915,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa2O6XCRA9TVsSAnZWagAA24oP/3CXn7A/Dg+6dhc5ztcc\nzc+dECUzmo/V13lmKf0CQGWO0RuFBE5RZfWfD9jPmQ9SMbtEssIoJx+yLtGI\n9gpXIBU8aaS+2FvucNJdaWP2+MaCfe2taDhVAN8RElG07p0P3x2KBlQG39v2\n4g6aQkPqk78ghQMB9pX1XhfWpPslKkKLenL7guloZmOFLBOuzv/1ue93hFhV\nCOQRK71MYS1X3ZGwknL94PfE3qrv9YJbzBPNPqGwXGlMlu0/IlePXsEbqA04\npoxCqsJd/EGJKxmbNwTcwKxx2GZTFTuiNh0Fw03w1sB6rlsd7Ycz3xFz0/Zd\nNj5hJsxlo0GWgcHzh+ONoAWnxN1VNgOjRuZO8HSirThE+NhovWx99E/TlbYJ\nih0RAVLboL6oiBpc/FW9rjZyaCxrbengMU8mqtpONcc8EsgOYhOvm0qmiLGu\nYhj4JlySWPXYzS7AU4L2v2coS8hs2/mTyLmAw5irYVIDdXuBW64gMWqqZO42\nHicKSBTWFkBAKcLgcDCq2Srj8zEoBXxgi53Ch9m38boDjVFOH3tuxIn2TDvI\nkTSrt/TuL11qot5oFH4rttBrWag53R8T4v+DZyOlEN4SBtdeXVPKWfRDbVOS\n9EuAWNJM/P/0QcpKyP3JI+hzDlcezot7r2T7XilwoM3k9k0j0FXz+uF96wwj\nYZh+\r\n=dbCy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHvL0bYfOlXXl8wJOCUZ1mz1feI9Pepkx4BPSslNgd7cAiABgx/s+TsR+OXr3zbjyz65kFl9FWF8TfiMW6WQp8e8Ww=="}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-message-interpret_6.0.0_1524166294123_0.12480766788139186"},"_hasShrinkwrap":false},"6.0.3":{"name":"format-message-interpret","version":"6.0.3","description":"Convert format-message-parse ast to a function","author":{"name":"Andy VanWagoner","email":"andy@thetalecrafter.com","url":"https://thetalecrafter.com/"},"homepage":"https://github.com/format-message/format-message/tree/master/packages/format-message-interpret","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message","message-format","internationalization","i18n","icu","messageformat","pluralformat","selectformat"],"dependencies":{"format-message-formats":"^6.0.3","lookup-closest-locale":"^6.0.3"},"_id":"format-message-interpret@6.0.3","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"thetalecrafter","email":"andy@thetalecrafter.com"},"dist":{"integrity":"sha512-uEkfIFVwTG3vgOGC3XiQgvCvAqP9XrkeAUIWy0/SxWlFaShsX1Lkg9c0BDM5wfiiKcEEeLqPbdbJOUGMiVQjUw==","shasum":"814787a4f25b4f8a1fbdd5427c15d59b96e20092","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-6.0.3.tgz","fileCount":6,"unpackedSize":33911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa41zUCRA9TVsSAnZWagAA+koP/3M4RRsVfBLvHUuQ7Vnr\nFpzzbigt6yTVoobPudDYcN1Uwn6ThSNo1LUf0B/X+Fyn9iCG25KWy/MJuBy8\nqdBD5sYMHWY8qf3jvCz9/tMBdP4hzUBjtUELTbrJ6LSoNcFYyc+MVokvHYYZ\npf2ZEispZeQWSdrVXE4yKaSv+wIjmCwChlvPIO2yAYPEui2e+T+8s0tePHjF\nOZcScTNvUe8Amc/kY1Pqm6GzW8leE78CfAPSjUz2E8PYPLP0uMypBudiC4NL\nBYm0nVXkTreoVBxvfz1aotetWU/8lFxzKPzfCFnvSpqOM5Pbq2KaP8a2bP6X\na8MqMdEltIxM4NktINXJWpwFklPfJOm/HewwxluxdDEAjoS1/sIkyU6N8AqJ\nc/jogb0VOdgrR0+YmTXTAcPo7dY9fUuzA7+54BAB1/ws4cg93tV2ilQ0wQMQ\nkQ2YVIuKVbZyzViTlD3893WXOVb/nT9Lf4pyQDZXEnAA8Dcv7zxHyku9Az9E\n8KhgUz4AHdBhh91+TDtmawW6uQgDel972fJ4vlLpzaS9+S0m10NnA6xg+pl7\nkYcCyA/Z6rMC3Ki2EbQjUmjuqoXEH/Ufzeoxx/jFF3AUSmtNbp01awvjmndo\nhKUPey6TAlCQUsSZ3bdgZksGsWamRilezb2Iqpd5RM4FCaNN1v3THQdeOiit\nKcAB\r\n=JADf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMTpX73BtWKuUf98972MNaxUReigRlB+cnzrh8rJIqogIhAJ9ZoDhATJfO5XBsJb/yIL/r2Cpnq9ni1r22n8O4I9aH"}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-message-interpret_6.0.3_1524849875949_0.31462998562189703"},"_hasShrinkwrap":false},"6.0.4":{"name":"format-message-interpret","version":"6.0.4","description":"Convert format-message-parse ast to a function","author":{"name":"Andy VanWagoner","email":"andy@vanwago.net"},"homepage":"https://github.com/format-message/format-message/tree/master/packages/format-message-interpret","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message","message-format","internationalization","i18n","icu","messageformat","pluralformat","selectformat"],"dependencies":{"format-message-formats":"^6.0.4","lookup-closest-locale":"^6.0.4"},"_id":"format-message-interpret@6.0.4","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"thetalecrafter","email":"andy@thetalecrafter.com"},"dist":{"integrity":"sha512-5xiSxgXtCqF42rhrwL680O/As9QFWGMrcMh6Wa9WTyv3r3bAmP89MU5M45/CacvUdOXwgb5bSkTWmSl7mKaCjg==","shasum":"0e71536f905cfd787ee7641624fd412484689bbd","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-6.0.4.tgz","fileCount":5,"unpackedSize":29218,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbFurbCRA9TVsSAnZWagAAQJ8P/01z/chSLkMAcqpCqNoa\nfxhIpV4oGzjPRokJG14C0uirAveP5h1qQoFVvklawU3EzkK003d6OV6/PYDI\nlxJ3jd/QYG1chFvbbSo3RY5q/SUW4w3Ivp+xSSMrAnq28ZcZoatUQVLlQuX5\n5czHfHmX9AsqBKOzZEXMm0Ne9E/SWqnUodSsNBiNQSNJWqYAI6zVgagk+B18\nha+5fDEL+O/YKV+1flacTEJFdS+Jh4tgbEzkvn4RCoMZ/NGP6sR3KDDsEisU\npJRMH8k6c3ygvU4Zt5QffWtDkgMmV/NBjXWxm0AUBMz0zMOWlOcm0Z8yo/Ix\nVlcLQxyTfv7vzxEO8GLt19pGB0IiW/GC5sL3M7Fiy0PtY31x876uK6+ogZfI\ndKTfmGQVLqQGW715h1v2ZUHewkZKuxvNTTOQwlmdrjD0d5gjz3LKxG70kuqI\n4czchv2YqIXN+h3Oyh87E08NHORJdbvr8GXXjvb+KjcD1nK5Ac1eVu0HzFx9\n2rlMa2ehqPvosVHztZlD6wI2fIjsvmfgq69A/PorrozdC5ZOQ7YdoSYO5Ix+\nm+E/5LOBSMx4VmJXf29wGrxZkJkHcX1XktSosmIdln6JSl63A3MZ3fOejlzy\naOPUOgOB/+BM9Vi/nDvx4FPVu2eYcpnL/9Y5amEIFW6xzlvc6/VyLx1vTzve\n6Iww\r\n=h5Xw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC729Z1OBOVW8Lx2u5BZ9dDOngOTU01MTnLbMKj+TsH4AiEA9salGwJTyDHOQ4ixnEhkd8PpF8xAmuz3AfeleKR9MpM="}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-message-interpret_6.0.4_1528228569686_0.3280051614539805"},"_hasShrinkwrap":false},"6.1.0":{"name":"format-message-interpret","version":"6.1.0","description":"Convert format-message-parse ast to a function","author":{"name":"Andy VanWagoner","email":"andy@vanwago.net"},"homepage":"https://github.com/format-message/format-message/tree/master/packages/format-message-interpret","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message","message-format","internationalization","i18n","icu","messageformat","pluralformat","selectformat"],"dependencies":{"format-message-formats":"^6.1.0","lookup-closest-locale":"^6.1.0"},"_id":"format-message-interpret@6.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"thetalecrafter","email":"andy@vanwagoner.family"},"dist":{"integrity":"sha512-+tAwVdz+Zh+cPxObActrSCmfmKrmn7/sDWfXOI/Lj+2m1mks3hvkN9v9lGXClob5P2jVNMgdApndCK2BNFMKrg==","shasum":"6112ce49d4cb70338fd60f43bda0c5895d23200d","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-6.1.0.tgz","fileCount":5,"unpackedSize":29218,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbh1TjCRA9TVsSAnZWagAA2vcP/0s9FaI0qlTXhZPiMrwn\nsNh9PDf1nist4RJHKBtvDLNmpc83R1Q2BlQzseCjFYfbLmXESUuKKHRwB20m\nkVakSY5uB0Utf/7BmX0AY3OpPjsJxVSxW6sZbfy1VSgsldwdJdI8dMaWRAHL\nB30zkVCGot+jKeHwslH4sa7YV5IIEoqCuL9rH8Yx5veYRqIhbvyvbP36DuH/\n+yf6gqqMhDTyR2U6s3Yo3ICas2Ih7KMHJoQqDQZaYKMvFPTpcsXT6BdrUjqs\nSvhrNXv7XpUYXTtmMXxygQPYZtj8wLxCEd+wa5pfokeD22OxzZB4bqHGzooB\ngUtxy6LJx5LIgGeNJ9osNGAfGhpmfahqFZi4+5ewLkn5bb7eButsQBli3K5Z\nBEXjFNMiQ9JRGeTuxZIaQY2G/kvRx0H86dzNJlCT4ITzzBDH3nKXTWjFHucG\nynthsUIw8liDDqRukAfF+FvhjPuF2SXDBKa+BXGJXe3HT+lWiMxFm7/IE91i\nCzaQePpSC9uU6lC61IQy3Y6zE744QCwYRG/okGK053SJ+fszWldOj4LAq6Fj\nDpGbBGgWXBtLKTSLkiM/GZKWm923KQitT9QKE8VS0pC2INAI87slFDZcBupL\nGrdpUPNLbLV2mqxiuX5mguCz1ImF5JJYlAdl97ZVzzsHkBf7MFLnhYuGCyYy\nxwdv\r\n=+ipe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEGU8D5NpDK8/mZLBCKvuYfcXBmRZBlWc7MNCAhgaCzrAiEAx/1jrY6EC3unp8khLgr9S9P7+f9Uf6iyZm2ZqvDbEpk="}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-message-interpret_6.1.0_1535595746706_0.8773444752758595"},"_hasShrinkwrap":false},"6.2.0":{"name":"format-message-interpret","version":"6.2.0","description":"Convert format-message-parse ast to a function","author":{"name":"Andy VanWagoner","email":"andy@vanwago.net"},"homepage":"https://github.com/format-message/format-message/tree/master/packages/format-message-interpret","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message","message-format","internationalization","i18n","icu","messageformat","pluralformat","selectformat"],"types":"types.d.ts","dependencies":{"format-message-formats":"^6.2.0","lookup-closest-locale":"^6.2.0"},"_id":"format-message-interpret@6.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"thetalecrafter","email":"andy@vanwagoner.family"},"dist":{"integrity":"sha512-G2WxW9c/vk97rPgbP67p/6BdpoZI8g4LdKDIqxAlXQq1ZI3uQTV2a5f9q3Big04hjSsI8uTgzWWmF4ht50foyw==","shasum":"a290ff2c218638594204485557184cdff07d8d90","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-6.2.0.tgz","fileCount":6,"unpackedSize":29897,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbmSp5CRA9TVsSAnZWagAAs48P/i4WVwL2GZT+ziwpKR3k\np+K0tYZPi1r5ToZ8JCQleY5cWOMFhk85iwtXQUROEa0rKMEgh2WMiBWOUL8s\nUAYwrSRTqooDZl+MGWVRD2wmSbY1VOl1z9bruQttNdWocnYRxVltvVAL+dkT\nz0P96I72E40rKZXkv8KrE9MN5sN6x0RruZ0hfkZhkyfBLbZINQJmbCbJAfnz\nPzLkO/uhb6KtaKZP6sIZxQp3WEOD6V725HFKbwDEQTiW3WoRxECj3oT3/J3Q\ng0I1tCEQqrj5wkoN9xcLyv4pbS3PU7ptDFgSvoHwTY+pxGNyeUXVHV53rWjz\njMzVm6S59J6TLRDm3BvPoCheAGOfyFI+SRHWmwNnGynfEa34E0tqRKyVP+NF\nKjIxfasDI2GrmW2u+IKcdPUP7tTTF6rrkyE+DXlM/TMMgqb3rf+OnPWDXXA/\noDBMliJaE/ijQUejL7YpWClO40CdE/KEdoGIwIcQdaS6FVXG1fz6RM22zYr3\nE7jxKqFGZ73Ubs63K4FuUYlVHJS7brDJfaypxXLOOV3NtLb44t/4wL5pVA9r\nxvVzEZdrEcYdBeePfj8ZKY0/mupzF/Ld3cm/mlpa0NVd1FoELF58tyrjS2RL\nDA0qTIt1xpOtK8n75e2M9IfuRYd4AIEk7zIKwrfufI9Ds/ZerTpitqscRRF5\n9Hon\r\n=3INZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFgTvesBHXv5kzAxqHKhX+XgnoH+/dCVdwfpYjK55zgsAiEAj7/Tx5RPJD2eDfaXbDyho+5aNSPf5D+O7jj9U1yNsog="}]},"maintainers":[{"name":"thetalecrafter","email":"thetalecrafter@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-message-interpret_6.2.0_1536764536325_0.5856317361734349"},"_hasShrinkwrap":false},"6.2.2":{"name":"format-message-interpret","version":"6.2.2","description":"Convert format-message-parse ast to a function","author":{"name":"Andy VanWagoner","email":"andy@vanwago.net"},"homepage":"https://github.com/format-message/format-message/tree/master/packages/format-message-interpret","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message","message-format","internationalization","i18n","icu","messageformat","pluralformat","selectformat"],"types":"types.d.ts","dependencies":{"format-message-formats":"^6.2.0","lookup-closest-locale":"^6.2.0"},"gitHead":"2ef1e701daa61ca6008651ced62d9ded8c127c0e","_id":"format-message-interpret@6.2.2","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.13.3/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-USp2o/846q9+wkDZywmEPmB7Vk1Awx2ANtKvLA4+Ukvl7l+DHLDisWIuOhjAeElcurD9wyLxA4GwML6W+v3m/g==","shasum":"f8c6def778f6dc2aa96d61f9daf51dd37aafe92c","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-6.2.2.tgz","fileCount":6,"unpackedSize":30214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHUbxCRA9TVsSAnZWagAANn0P/0/fOp7tUI5xNEz9YHJi\nRZG3uxoucctN6qzXlqILOgTH3MLSbYUsRg6sKLq/2WZWCoSEX0uGEGbqJLnJ\nBsHGoeqo47NnnYBa9qQ/rVLBWDbc8NGrKxI0YpzVfbJXSNVz3hYEjIAetLAt\ncu5Ojy8aI7ZrhiUbe6olr4dPcwhksI0ODK03UHDEB8GJ3g9w5OcHcuexNNIm\n4K932/IFJLiPVokN4t/XgeoKCVy+ZiPkRtvMd6Pw8QnA3AYmwH0LdMLZtz+5\nQY9oPRMaU4j5uznJ5tvUb0+id2uRdGw3Dr8Vgi1fS1N60puhlR6MthR5Zddy\nrSsB6T5GflpPgIQ6LkIYGwsNWZZUzAr2lSs68wmlHVATSfTBdRiaIcjzUhFQ\nTAe5bXycG82raEao2opJTE+dc8Y1nOUjU3UoKmTE9Cumpt5UhnuE1vIYfb45\nkR2GZdsH2x6jAvkgSRgrNDOFRCYxf5tRUOMjtruFQNNbB7G4Z0ZQFzlwi7dY\nPwWUfUPmsbbK/nP/yU3oZ1MDlthIWVq+mObfON7Om9R8DfDeE+rhA57Ws1sl\nYw7Q/mLA5/LFh0Aj2Za9IN7J9y1A3RF8QSiCDQn+I5Rd9O32xi1gKgj9Le5g\nu66TYVZcwa/OGR/WDJzBiZUmRvzjrJAe9cyIbUMAPeacqbYU20gHkcBuCkR0\nBwSJ\r\n=1A+/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2t1XfuiALebjrlMRaJecR4+/lZ5bMnEeiVacBQt3OWgIgQEKtW6DoNbuo7//BabuWFyt1CxjW6syujuZaXclmL0M="}]},"maintainers":[{"email":"aaronshaf@gmail.com","name":"aaronshaf"},{"email":"bjohn465@gmail.com","name":"bjohn465"},{"email":"brent47@gmail.com","name":"brentburgoyne"},{"email":"andy@vanwagoner.family","name":"thetalecrafter"}],"_npmUser":{"name":"bjohn465","email":"bjohn465@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-message-interpret_6.2.2_1562199792466_0.46527740037935783"},"_hasShrinkwrap":false},"6.2.3":{"name":"format-message-interpret","version":"6.2.3","description":"Convert format-message-parse ast to a function","author":{"name":"Andy VanWagoner","email":"andy@vanwago.net"},"homepage":"https://github.com/format-message/format-message/tree/master/packages/format-message-interpret","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message","message-format","internationalization","i18n","icu","messageformat","pluralformat","selectformat"],"types":"types.d.ts","dependencies":{"format-message-formats":"^6.2.0","lookup-closest-locale":"^6.2.0"},"gitHead":"7747f5533981f7a1a3cc83714e8ac02bafd9d8c4","_id":"format-message-interpret@6.2.3","_nodeVersion":"10.16.0","_npmVersion":"lerna/3.13.3/node@v10.16.0+x64 (darwin)","dist":{"integrity":"sha512-OoOdB5yHLzW89RwDQW4fj+8p2Eay9Dtmx4B7Tz8C/QQl/j+aVjy65A5xasQhQD+4JumYU/OxMBdjYzBSR8+ivA==","shasum":"ee72fe924102c7d3f0c2d12797f53d8d93795810","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-6.2.3.tgz","fileCount":6,"unpackedSize":30214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdHlnPCRA9TVsSAnZWagAA9ysQAIm78Hr9xxjj/cd2sGES\nOz/cPGQZsGrAN0OQT1YhrEKL1iaw1oIJZMJL7bJPPtgWhKsXSxf3LHqmTmQx\nrA4fMcTaEDsvjPGEP9apzMrCFHeYmrYS8O1EGh9y066+yM4RJ4dlo0ap39rR\npXkEqhthLsHVefSahZOvI7NRz8xHrYlb/CKnagWmxKu0NM0uo2ZttOdFk+re\nOAus+qynNRjk+xhpHLNE9CzBJCR9WjJmzvbQKaI4FLIeWZgRJi1PyyhEd2jA\nb3AWbE2GZ1Ay85SPa759TCqbaEYCuml47WyBU4D9K0Gq+wgkmbdJutJiK/Nk\nE3U4mC4agfaFqgfDBxpOn9VI9LnZS6Bk5DadlwZGHDDvInH0UEMly1PyAC+E\nqTFUqtvuBYbeubflsaXcdlYwpmbiWKH438Z3go8hpIVDSp1VwSBtdXt//W7U\nHCgOgi31qDfaHK+vitVD/tQroFJ2ZS7mF9sdzWjDCe5sPupObbfuX8eggQ9/\neYwmk6g8ofFiRQPt6YlNw0tZ65XFZJ/AZLERpY+BqPDht2hfH2JSrB4ZWbbV\nHxraVw0gqelurKyWSDO0sblhrVA6xMfbNSpKAWFvxc6BRuKkaD1iGRho+Kxg\nnClAp2RCJh3ij0BKDKbDhSgdkXSr7NKsNN8eZuxGojAPixp3yCLhZeneN42d\nGhe6\r\n=UkBk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIASVHXKlojGcYeQyRS+dawbVK2gRBvK7pr8oryqklpM4AiEAzXRBYyqyU96l1d6X0XnVlNaj6X559NjLXgPgmesOZPk="}]},"maintainers":[{"email":"aaronshaf@gmail.com","name":"aaronshaf"},{"email":"bjohn465@gmail.com","name":"bjohn465"},{"email":"brent47@gmail.com","name":"brentburgoyne"},{"email":"andy@vanwagoner.family","name":"thetalecrafter"}],"_npmUser":{"name":"bjohn465","email":"bjohn465@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-message-interpret_6.2.3_1562270158777_0.4987404669881583"},"_hasShrinkwrap":false},"6.2.4":{"name":"format-message-interpret","version":"6.2.4","description":"Convert format-message-parse ast to a function","author":{"name":"Andy VanWagoner","email":"andy@vanwago.net"},"homepage":"https://github.com/format-message/format-message/tree/master/packages/format-message-interpret","license":"MIT","repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"keywords":["format-message","message-format","internationalization","i18n","icu","messageformat","pluralformat","selectformat"],"types":"types.d.ts","dependencies":{"format-message-formats":"^6.2.4","lookup-closest-locale":"^6.2.0"},"gitHead":"ece4dfacbec6af56e98897a3acbf0c99c64c2ed2","_id":"format-message-interpret@6.2.4","_nodeVersion":"16.9.1","_npmVersion":"lerna/3.13.3/node@v16.9.1+arm64 (darwin)","dist":{"integrity":"sha512-dRvz9mXhITApyOtfuFEb/XqvCe1u6RMkQW49UJHXS8w2S8cAHCqq5LNDFK+QK6XVzcofROycLb/k1uybTAKt2w==","shasum":"28f579b9cd4b57f3de2ec2a4d9623f9870e9ed03","tarball":"https://registry.npmjs.org/format-message-interpret/-/format-message-interpret-6.2.4.tgz","fileCount":6,"unpackedSize":30269,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDooaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoR0hAAiQn4fNnSaOhtQG6q77jzvs1IEmOh6wjsNCWAxvv/lKg2UEZ3\r\nYmnzwcPZ319O+fT9xMSM7dtSV6sj4tml9Xhdu0V231DOlQLgH4+YGQcUo4Lm\r\nh89SkVF/M9RLYCTYK1HIS4OrnTRSRVqtInb+VSlYUq4lj2OzSfGr+6XTXl29\r\nD+lA0rDb8gk3OU8H4U3+NN+YY92xY0zoGMljW4h6IJigjH1k/nFeo1i7pF13\r\nGvEOMcva3JkvlUy1R9TD+p3w/PHu/uFAj8NFrCPH/GMxY3R83aASGL0nqg6A\r\nHukWbyGmoGO+vg6Nuvia8HxlXpIaxjZx9eKFXAOi0sbYaUd5WmEyAU04PZ04\r\nGf/SAb9ikgLslYEL1fvz/qTdSnjjKo8tZ8kPOrxX7YNrXL2H7+C/dcUl8iRX\r\n8pFg6PFQxQBT06WLtHX5fx5+S/0XXqV9GIJ6tNkdiJCeF/3UfyrzyMnQSKPH\r\n7PVacnebTQNdW6aENCmHop406+o3vBMGrrgfZeufZzom92yl2t4F2LBoPPLH\r\nFAlxppMMd7VfFcUa7dJSMo06BY1TcOYaSKouSeErDi9iVzo6jZLa5cHJ0vkU\r\n3y5ecOIX3vkHBQESpLX37BHugB9kQwL/DO9z4VffeWka0KsMDNN35yhCRH63\r\nbP0Way1ubFdJ2WyvxiHDrEche9BwKyIl7/E=\r\n=zuyC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLRbN8K0Rmo/0N7x4D4HigsrXwSjpWw9J4nx1Q5FWHYAIhAPEWFs+VDRLNWJ/+LEPRCP3p42/zP7JN/UFnC+HeG738"}]},"_npmUser":{"name":"thetalecrafter","email":"andy@vanwagoner.family"},"directories":{},"maintainers":[{"name":"thetalecrafter","email":"andy@vanwagoner.family"},{"name":"bjohn465","email":"bjohn465@gmail.com"},{"name":"aaronshaf","email":"aaronshaf@gmail.com"},{"name":"brentburgoyne","email":"brent47@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/format-message-interpret_6.2.4_1645120026473_0.8616198797867223"},"_hasShrinkwrap":false}},"readme":"# ![format-message-interpret][logo]\n\n> Convert format-message-parse ast to a function\n\n[![npm Version][npm-image]][npm]\n[![JS Standard Style][style-image]][style]\n[![MIT License][license-image]][LICENSE]\n\nTurns a compact format-message ast:\n```js\n[ \"You have \", [ \"numBananas\", \"plural\", 0, {\n     \"=0\": [ \"no bananas\" ],\n    \"one\": [ \"a banana\" ],\n  \"other\": [ [ '#' ], \" bananas\" ]\n} ], \" for sale.\" ]\n```\n\ninto a function:\n```js\nformat({ numBananas:0 })\n//-> \"You have no bananas for sale.\"\n```\n\nQuick Examples\n--------------\n\n`npm install format-message-interpret --save`\n\n```js\nimport parse from 'format-message-parse'\nimport interpret from 'format-message-interpret'\n\ninterpret('en', parse('Hello, {name}!'))({ name: 'Jane' })\n```\n\nAPI\n---\n\n### `interpret(locales: string | string[], ast: AST, types?: Types)`\n\nGenerate a function from an `ast`, using the formatting rules of the `locales` that accepts an arguments object, and returns a string. You can optionally pass custom `types`. Any non-standard type found in `ast` without a corresponding formatter in `types` will be treated as a simple string type.\n\n```js\ntype Types = {\n  [type: string]: (placeholder: string[], locales: string | string[]) =>\n    (value: any, args: Object) => string\n}\n```\n\n`types` is an object with each key being the name of the type as it appears in the message pattern. Each value is a function that takes the `locales`, and the `node` from the ast (like `[ 'a', 'mytype', 'style' ]`), and it returns a function that will be called with the specific `value`, and the complete arguments object. If the custom type was defined with sub-messages, those will already be converted to functions meant to be called with `args`.\n\n### `interpret.toParts(locales: string | string[], ast: AST, types?: Types)`\n\nLike, `interpret`, `interpretToParts` will generate a function accepting the message arguments. However, it will return an array of message parts, instead of a string. This is intended to help generate rich messages.\n\n```js\ninterpret.toParts('en', parse('a {b} c'))({ b: 1 }) // [ 'a ', 1, ' c' ]\ninterpret.toParts('en', parse('Click {a, element, children {here}}'), {\n  element: (locales, [ id, type, props ]) =>\n    (fn, args) => fn(props.children(args))\n})({ a: children => <a>{children}</a> })\n// [ 'Click ', <a>here</a> ]\n```\n\nLicense\n-------\n\nThis software is free to use under the MIT license. See the [LICENSE-MIT file][LICENSE] for license text and copyright information.\n\n\n[logo]: https://format-message.github.io/format-message/logo.svg\n[npm]: https://www.npmjs.org/package/format-message-interpret\n[npm-image]: https://img.shields.io/npm/v/format-message-interpret.svg\n[style]: https://github.com/feross/standard\n[style-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n[license-image]: https://img.shields.io/npm/l/format-message.svg\n[LICENSE]: https://github.com/format-message/format-message/blob/master/LICENSE-MIT\n","maintainers":[{"name":"thetalecrafter","email":"andy@vanwagoner.family"},{"name":"bjohn465","email":"bjohn465@gmail.com"},{"name":"aaronshaf","email":"aaronshaf@gmail.com"},{"name":"brentburgoyne","email":"brent47@gmail.com"}],"time":{"modified":"2022-06-18T03:04:15.830Z","created":"2015-11-15T04:17:57.092Z","4.0.0":"2015-11-15T04:17:57.092Z","4.0.1":"2016-08-19T18:36:18.319Z","5.0.0-beta.8":"2016-09-26T18:56:28.997Z","5.0.0-beta.9":"2016-09-26T19:11:08.653Z","5.0.0-beta.10":"2016-09-26T19:40:26.667Z","5.0.0":"2016-09-27T19:31:26.108Z","5.1.0":"2016-12-28T23:27:50.818Z","5.1.2":"2017-03-23T15:36:13.944Z","5.2.1":"2017-11-03T20:13:53.402Z","6.0.0-alpha.0":"2018-04-16T22:31:43.947Z","6.0.0-alpha.1":"2018-04-17T15:56:02.357Z","6.0.0-alpha.2":"2018-04-18T22:20:05.453Z","6.0.0":"2018-04-19T19:31:34.360Z","6.0.3":"2018-04-27T17:24:36.051Z","6.0.4":"2018-06-05T19:56:10.546Z","6.1.0":"2018-08-30T02:22:26.861Z","6.2.0":"2018-09-12T15:02:16.488Z","6.2.2":"2019-07-04T00:23:12.701Z","6.2.3":"2019-07-04T19:55:58.921Z","6.2.4":"2022-02-17T17:47:06.661Z"},"homepage":"https://github.com/format-message/format-message/tree/master/packages/format-message-interpret","keywords":["format-message","message-format","internationalization","i18n","icu","messageformat","pluralformat","selectformat"],"repository":{"type":"git","url":"git+https://github.com/format-message/format-message.git"},"author":{"name":"Andy VanWagoner","email":"andy@vanwago.net"},"bugs":{"url":"https://github.com/format-message/format-message/issues"},"license":"MIT","readmeFilename":"README.md"}