Platform-specific menus


#1

In one of my packages, I’m successfully using the following to display platform-specific menu labels:

'context-menu':
  '.platform-darwin atom-text-editor': [
    {
      'label': 'Reveal in Finder'
      'command': 'browse:reveal-file'
    }
  ]
  '.platform-win32 atom-text-editor': [
    {
      'label': 'Reveal in Explorer'
      'command': 'browse:reveal-file'
    }
  ]

While this works fine for the context-menu, I can’t use the same for the Packages menu:

'menu': [
  {
    'label': 'Packages'
    'submenu': [
      'label': 'Browse'
      '.platform-darwin submenu': [
        {
          'label': 'Reveal in Finder'
          'command': 'browse:reveal-file'
        }
      ]
      '.platform-win32 submenu': [
        {
          'label': 'Reveal in Explorer'
          'command': 'browse:reveal-file'
        }
      ]
    ]
  }
]

Is this a bug in Atom or am I doing something wrong?