{"action":"created","comment":{"url":"https://api.github.com/repos/l20n/l20n.js/pulls/comments/84265541","pull_request_review_id":5051881,"id":84265541,"diff_hunk":"@@ -0,0 +1,217 @@\n+================\n+Builtins in L20n\n+================\n+\n+L20n ships with a number of built-in functions that can be used from within\n+localization messages.\n+\n+The list of built-ins is extensible and environments may want to add additional\n+built-ins designated to aid localizers writing translations targeted\n+for a given environment.\n+\n+\n+How to use Built-ins\n+====================\n+\n+Localizers can reference builtin in a message within a placeable and either\n+display the return value, or use it in the selector expression to select\n+the right value.","path":"docs/builtins.rst","position":18,"original_position":18,"commit_id":"fa6432bf0539e5dd3470f6631811eb3611affc5a","original_commit_id":"fa6432bf0539e5dd3470f6631811eb3611affc5a","user":{"login":"stasm","id":265818,"avatar_url":"https://avatars.githubusercontent.com/u/265818?v=3","gravatar_id":"","url":"https://api.github.com/users/stasm","html_url":"https://github.com/stasm","followers_url":"https://api.github.com/users/stasm/followers","following_url":"https://api.github.com/users/stasm/following{/other_user}","gists_url":"https://api.github.com/users/stasm/gists{/gist_id}","starred_url":"https://api.github.com/users/stasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stasm/subscriptions","organizations_url":"https://api.github.com/users/stasm/orgs","repos_url":"https://api.github.com/users/stasm/repos","events_url":"https://api.github.com/users/stasm/events{/privacy}","received_events_url":"https://api.github.com/users/stasm/received_events","type":"User","site_admin":false},"body":"`FTL Functions can only be called inside of placeables. Use them to return a value to be interpolated in the message or as selectors in select expressions.  Functions may (but don't have to) accept positional and keyword arguments. See the reference below for more information about the arguments accepted for each built-in function.`","created_at":"2016-10-20T11:51:48Z","updated_at":"2016-10-20T11:58:57Z","html_url":"https://github.com/l20n/l20n.js/pull/160#discussion_r84265541","pull_request_url":"https://api.github.com/repos/l20n/l20n.js/pulls/160","_links":{"self":{"href":"https://api.github.com/repos/l20n/l20n.js/pulls/comments/84265541"},"html":{"href":"https://github.com/l20n/l20n.js/pull/160#discussion_r84265541"},"pull_request":{"href":"https://api.github.com/repos/l20n/l20n.js/pulls/160"}}},"pull_request":{"url":"https://api.github.com/repos/l20n/l20n.js/pulls/160","id":90108307,"html_url":"https://github.com/l20n/l20n.js/pull/160","diff_url":"https://github.com/l20n/l20n.js/pull/160.diff","patch_url":"https://github.com/l20n/l20n.js/pull/160.patch","issue_url":"https://api.github.com/repos/l20n/l20n.js/issues/160","number":160,"state":"open","locked":false,"title":"Add builtins docs","user":{"login":"zbraniecki","id":449986,"avatar_url":"https://avatars.githubusercontent.com/u/449986?v=3","gravatar_id":"","url":"https://api.github.com/users/zbraniecki","html_url":"https://github.com/zbraniecki","followers_url":"https://api.github.com/users/zbraniecki/followers","following_url":"https://api.github.com/users/zbraniecki/following{/other_user}","gists_url":"https://api.github.com/users/zbraniecki/gists{/gist_id}","starred_url":"https://api.github.com/users/zbraniecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbraniecki/subscriptions","organizations_url":"https://api.github.com/users/zbraniecki/orgs","repos_url":"https://api.github.com/users/zbraniecki/repos","events_url":"https://api.github.com/users/zbraniecki/events{/privacy}","received_events_url":"https://api.github.com/users/zbraniecki/received_events","type":"User","site_admin":false},"body":"First pass, @Pike , @stasm ?","created_at":"2016-10-19T23:18:16Z","updated_at":"2016-10-20T11:58:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad146b319309a56b7cf4365624c56eed96b10cc6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/l20n/l20n.js/pulls/160/commits","review_comments_url":"https://api.github.com/repos/l20n/l20n.js/pulls/160/comments","review_comment_url":"https://api.github.com/repos/l20n/l20n.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/l20n/l20n.js/issues/160/comments","statuses_url":"https://api.github.com/repos/l20n/l20n.js/statuses/fa6432bf0539e5dd3470f6631811eb3611affc5a","head":{"label":"zbraniecki:builtins-docs","ref":"builtins-docs","sha":"fa6432bf0539e5dd3470f6631811eb3611affc5a","user":{"login":"zbraniecki","id":449986,"avatar_url":"https://avatars.githubusercontent.com/u/449986?v=3","gravatar_id":"","url":"https://api.github.com/users/zbraniecki","html_url":"https://github.com/zbraniecki","followers_url":"https://api.github.com/users/zbraniecki/followers","following_url":"https://api.github.com/users/zbraniecki/following{/other_user}","gists_url":"https://api.github.com/users/zbraniecki/gists{/gist_id}","starred_url":"https://api.github.com/users/zbraniecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbraniecki/subscriptions","organizations_url":"https://api.github.com/users/zbraniecki/orgs","repos_url":"https://api.github.com/users/zbraniecki/repos","events_url":"https://api.github.com/users/zbraniecki/events{/privacy}","received_events_url":"https://api.github.com/users/zbraniecki/received_events","type":"User","site_admin":false},"repo":{"id":5379922,"name":"l20n.js","full_name":"zbraniecki/l20n.js","owner":{"login":"zbraniecki","id":449986,"avatar_url":"https://avatars.githubusercontent.com/u/449986?v=3","gravatar_id":"","url":"https://api.github.com/users/zbraniecki","html_url":"https://github.com/zbraniecki","followers_url":"https://api.github.com/users/zbraniecki/followers","following_url":"https://api.github.com/users/zbraniecki/following{/other_user}","gists_url":"https://api.github.com/users/zbraniecki/gists{/gist_id}","starred_url":"https://api.github.com/users/zbraniecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbraniecki/subscriptions","organizations_url":"https://api.github.com/users/zbraniecki/orgs","repos_url":"https://api.github.com/users/zbraniecki/repos","events_url":"https://api.github.com/users/zbraniecki/events{/privacy}","received_events_url":"https://api.github.com/users/zbraniecki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zbraniecki/l20n.js","description":"L20n implementation in JavaScript","fork":true,"url":"https://api.github.com/repos/zbraniecki/l20n.js","forks_url":"https://api.github.com/repos/zbraniecki/l20n.js/forks","keys_url":"https://api.github.com/repos/zbraniecki/l20n.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zbraniecki/l20n.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zbraniecki/l20n.js/teams","hooks_url":"https://api.github.com/repos/zbraniecki/l20n.js/hooks","issue_events_url":"https://api.github.com/repos/zbraniecki/l20n.js/issues/events{/number}","events_url":"https://api.github.com/repos/zbraniecki/l20n.js/events","assignees_url":"https://api.github.com/repos/zbraniecki/l20n.js/assignees{/user}","branches_url":"https://api.github.com/repos/zbraniecki/l20n.js/branches{/branch}","tags_url":"https://api.github.com/repos/zbraniecki/l20n.js/tags","blobs_url":"https://api.github.com/repos/zbraniecki/l20n.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zbraniecki/l20n.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zbraniecki/l20n.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/zbraniecki/l20n.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zbraniecki/l20n.js/statuses/{sha}","languages_url":"https://api.github.com/repos/zbraniecki/l20n.js/languages","stargazers_url":"https://api.github.com/repos/zbraniecki/l20n.js/stargazers","contributors_url":"https://api.github.com/repos/zbraniecki/l20n.js/contributors","subscribers_url":"https://api.github.com/repos/zbraniecki/l20n.js/subscribers","subscription_url":"https://api.github.com/repos/zbraniecki/l20n.js/subscription","commits_url":"https://api.github.com/repos/zbraniecki/l20n.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/zbraniecki/l20n.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/zbraniecki/l20n.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/zbraniecki/l20n.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/zbraniecki/l20n.js/contents/{+path}","compare_url":"https://api.github.com/repos/zbraniecki/l20n.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zbraniecki/l20n.js/merges","archive_url":"https://api.github.com/repos/zbraniecki/l20n.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zbraniecki/l20n.js/downloads","issues_url":"https://api.github.com/repos/zbraniecki/l20n.js/issues{/number}","pulls_url":"https://api.github.com/repos/zbraniecki/l20n.js/pulls{/number}","milestones_url":"https://api.github.com/repos/zbraniecki/l20n.js/milestones{/number}","notifications_url":"https://api.github.com/repos/zbraniecki/l20n.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zbraniecki/l20n.js/labels{/name}","releases_url":"https://api.github.com/repos/zbraniecki/l20n.js/releases{/id}","deployments_url":"https://api.github.com/repos/zbraniecki/l20n.js/deployments","created_at":"2012-08-11T13:20:14Z","updated_at":"2016-09-20T15:42:04Z","pushed_at":"2016-10-19T23:17:51Z","git_url":"git://github.com/zbraniecki/l20n.js.git","ssh_url":"git@github.com:zbraniecki/l20n.js.git","clone_url":"https://github.com/zbraniecki/l20n.js.git","svn_url":"https://github.com/zbraniecki/l20n.js","homepage":null,"size":4209,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"l20n:master","ref":"master","sha":"3ba0b9ad8f20a9540eb7ef6c4bda4604af4677e1","user":{"login":"l20n","id":2127587,"avatar_url":"https://avatars.githubusercontent.com/u/2127587?v=3","gravatar_id":"","url":"https://api.github.com/users/l20n","html_url":"https://github.com/l20n","followers_url":"https://api.github.com/users/l20n/followers","following_url":"https://api.github.com/users/l20n/following{/other_user}","gists_url":"https://api.github.com/users/l20n/gists{/gist_id}","starred_url":"https://api.github.com/users/l20n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l20n/subscriptions","organizations_url":"https://api.github.com/users/l20n/orgs","repos_url":"https://api.github.com/users/l20n/repos","events_url":"https://api.github.com/users/l20n/events{/privacy}","received_events_url":"https://api.github.com/users/l20n/received_events","type":"Organization","site_admin":false},"repo":{"id":5366673,"name":"l20n.js","full_name":"l20n/l20n.js","owner":{"login":"l20n","id":2127587,"avatar_url":"https://avatars.githubusercontent.com/u/2127587?v=3","gravatar_id":"","url":"https://api.github.com/users/l20n","html_url":"https://github.com/l20n","followers_url":"https://api.github.com/users/l20n/followers","following_url":"https://api.github.com/users/l20n/following{/other_user}","gists_url":"https://api.github.com/users/l20n/gists{/gist_id}","starred_url":"https://api.github.com/users/l20n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l20n/subscriptions","organizations_url":"https://api.github.com/users/l20n/orgs","repos_url":"https://api.github.com/users/l20n/repos","events_url":"https://api.github.com/users/l20n/events{/privacy}","received_events_url":"https://api.github.com/users/l20n/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/l20n/l20n.js","description":"A next-gen localization framework from Mozilla.","fork":false,"url":"https://api.github.com/repos/l20n/l20n.js","forks_url":"https://api.github.com/repos/l20n/l20n.js/forks","keys_url":"https://api.github.com/repos/l20n/l20n.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/l20n/l20n.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/l20n/l20n.js/teams","hooks_url":"https://api.github.com/repos/l20n/l20n.js/hooks","issue_events_url":"https://api.github.com/repos/l20n/l20n.js/issues/events{/number}","events_url":"https://api.github.com/repos/l20n/l20n.js/events","assignees_url":"https://api.github.com/repos/l20n/l20n.js/assignees{/user}","branches_url":"https://api.github.com/repos/l20n/l20n.js/branches{/branch}","tags_url":"https://api.github.com/repos/l20n/l20n.js/tags","blobs_url":"https://api.github.com/repos/l20n/l20n.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/l20n/l20n.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/l20n/l20n.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/l20n/l20n.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/l20n/l20n.js/statuses/{sha}","languages_url":"https://api.github.com/repos/l20n/l20n.js/languages","stargazers_url":"https://api.github.com/repos/l20n/l20n.js/stargazers","contributors_url":"https://api.github.com/repos/l20n/l20n.js/contributors","subscribers_url":"https://api.github.com/repos/l20n/l20n.js/subscribers","subscription_url":"https://api.github.com/repos/l20n/l20n.js/subscription","commits_url":"https://api.github.com/repos/l20n/l20n.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/l20n/l20n.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/l20n/l20n.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/l20n/l20n.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/l20n/l20n.js/contents/{+path}","compare_url":"https://api.github.com/repos/l20n/l20n.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/l20n/l20n.js/merges","archive_url":"https://api.github.com/repos/l20n/l20n.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/l20n/l20n.js/downloads","issues_url":"https://api.github.com/repos/l20n/l20n.js/issues{/number}","pulls_url":"https://api.github.com/repos/l20n/l20n.js/pulls{/number}","milestones_url":"https://api.github.com/repos/l20n/l20n.js/milestones{/number}","notifications_url":"https://api.github.com/repos/l20n/l20n.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/l20n/l20n.js/labels{/name}","releases_url":"https://api.github.com/repos/l20n/l20n.js/releases{/id}","deployments_url":"https://api.github.com/repos/l20n/l20n.js/deployments","created_at":"2012-08-10T08:17:42Z","updated_at":"2016-10-16T03:36:17Z","pushed_at":"2016-10-19T23:18:16Z","git_url":"git://github.com/l20n/l20n.js.git","ssh_url":"git@github.com:l20n/l20n.js.git","clone_url":"https://github.com/l20n/l20n.js.git","svn_url":"https://github.com/l20n/l20n.js","homepage":"http://l20n.org","size":5174,"stargazers_count":839,"watchers_count":839,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":62,"mirror_url":null,"open_issues_count":8,"forks":62,"open_issues":8,"watchers":839,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/l20n/l20n.js/pulls/160"},"html":{"href":"https://github.com/l20n/l20n.js/pull/160"},"issue":{"href":"https://api.github.com/repos/l20n/l20n.js/issues/160"},"comments":{"href":"https://api.github.com/repos/l20n/l20n.js/issues/160/comments"},"review_comments":{"href":"https://api.github.com/repos/l20n/l20n.js/pulls/160/comments"},"review_comment":{"href":"https://api.github.com/repos/l20n/l20n.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/l20n/l20n.js/pulls/160/commits"},"statuses":{"href":"https://api.github.com/repos/l20n/l20n.js/statuses/fa6432bf0539e5dd3470f6631811eb3611affc5a"}}}}
{"actor":{"display_login":"stasm"}}