{"action":"opened","issue":{"url":"https://api.github.com/repos/grow/grow/issues/289","repository_url":"https://api.github.com/repos/grow/grow","labels_url":"https://api.github.com/repos/grow/grow/issues/289/labels{/name}","comments_url":"https://api.github.com/repos/grow/grow/issues/289/comments","events_url":"https://api.github.com/repos/grow/grow/issues/289/events","html_url":"https://github.com/grow/grow/issues/289","id":173963381,"number":289,"title":"`grow extract --localized` doesn't behave correctly for subcollections","user":{"login":"stucox","id":1165817,"avatar_url":"https://avatars.githubusercontent.com/u/1165817?v=3","gravatar_id":"","url":"https://api.github.com/users/stucox","html_url":"https://github.com/stucox","followers_url":"https://api.github.com/users/stucox/followers","following_url":"https://api.github.com/users/stucox/following{/other_user}","gists_url":"https://api.github.com/users/stucox/gists{/gist_id}","starred_url":"https://api.github.com/users/stucox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stucox/subscriptions","organizations_url":"https://api.github.com/users/stucox/orgs","repos_url":"https://api.github.com/users/stucox/repos","events_url":"https://api.github.com/users/stucox/events{/privacy}","received_events_url":"https://api.github.com/users/stucox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-30T08:50:18Z","updated_at":"2016-08-30T08:50:18Z","closed_at":null,"body":"Looks like `grow extract --localized` extracts terms in docs in subcollections for all podspec locales, rather than the locales declared by the nearest blueprint (which is what I’d expect).\r\n\r\nI’m afraid I haven’t had time to create a test case yet, but I have a structure similar to:\r\n\r\n```\r\n/\r\n├─ content/\r\n│   ├─ mycollection/\r\n│   │   └─ mysubcollection/\r\n│   │       ├─ _blueprint.yaml\r\n│   │       └─ mydoc.yaml\r\n│   :\r\n├─ podspec.yaml\r\n:\r\n```\r\n\r\nwhere:\r\n\r\n* `mydoc.yaml` doesn’t declare a `$localization` config\r\n\r\n* `_blueprint.yaml` declares:\r\n\r\n    ```yaml\r\n    localization:\r\n      default_locale: en_US\r\n      locales:\r\n        - de_DE\r\n        - en_US\r\n    ```\r\n\r\n* podspec.yaml declares\r\n\r\n    ```yaml\r\n    localization:\r\n      default_locale: en_US\r\n      locales:\r\n        - de_DE\r\n        - en_US\r\n        - fr_FR\r\n    ```\r\n\r\nTagged strings in `mydoc.yaml` are unexpectedly extracted for `fr_FR`.\r\n"}}
{"actor":{"display_login":"stucox"}}