Sha256: 7dba9098602dce20896e96daa67543ebe960eb16e76938c046373dccc7328ae0

Contents?: true

Size: 1.2 KB

Versions: 5

Compression:

Stored size: 1.2 KB

Contents

Feature: Translate app strings
  As a Zendesk admin
  To enable many languages
  I want to be able to map between json and yaml

  Scenario: Attempt to generate invalid package name
    Given an app is created in directory "tmp/aruba"
    When I run "cd tmp/aruba && zat translate create" command with the following details:
      | package name | This is wrong |
    Then the command output should contain "Invalid package name, try again:"

  Scenario: Generate template yaml from en.json
    Given an app is created in directory "tmp/aruba"
    And the fixture "quote_character_translation.json" is used for "translations/en.json"
    When I run "cd tmp/aruba && zat translate create" command with the following details:
      | package name | test_package |
    Then the app file "tmp/aruba/translations/en.yml" is created with:
    """
    ---
    title: "John Test App"
    packages:
      - default
      - app_test_package

    parts:
      - translation:
        key: "txt.apps.test_package.app.description"
        title: ""
        value: "Play the famous zen tunes in your help desk."
      - translation:
        key: "txt.apps.test_package.app.name"
        title: ""
        value: "Buddha \"Machine\""

    """

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zendesk_apps_tools-1.6.0 features/translate.feature
zendesk_apps_tools-1.5.0 features/translate.feature
zendesk_apps_tools-1.4.0 features/translate.feature
zendesk_apps_tools-1.3.0 features/translate.feature
zendesk_apps_tools-1.2.2 features/translate.feature