<commit_before># encoding: utf-8

Feature: World location news specific to native language speakers

  As an FCO publisher,
  I want the ability to publish a World location news story without having to have an English language edition,
  So that I do not need to spend the time translating content into English

  -------

  Some content is only for audiences local to the location and so an English version is not relevant or desired.

  Background:
    Given I am a GDS editor

  Scenario: Create a world location news article in a non-English language
    Given a world location "France" exists with a translation for the locale "Français"
    When I draft a French-only world location news article called "Le ministre de la Funk aime faire la fête" associated with "France"
    Then I should see the "Le ministre de la Funk aime faire la fête" article listed in admin with an indication that it is in French
    When I publish the non-English world location news article "Le ministre de la Funk aime faire la fête"
    Then I should see the "Le ministre de la Funk aime faire la fête" article on the French version of the public "France" location page
    And I should be able to view the article "Le ministre de la Funk aime faire la fête" article in French
    But I shoud not see the "Le ministre de la Funk aime faire la fête" article on the English version of the public "France" location page

Scenario: Editing a right-to-left non-English edition
  Given a draft right-to-left non-English edition exists
  When I view the right-to-left non-English edition in admin
  Then I should see the document preview appears right-to-left
  When I edit the right-to-left non-English edition
  Then I should see that the form text fields are displayed right to left<commit_msg>Fix indentation<commit_after># encoding: utf-8

Feature: World location news specific to native language speakers

  As an FCO publisher,
  I want the ability to publish a World location news story without having to have an English language edition,
  So that I do not need to spend the time translating content into English

  -------

  Some content is only for audiences local to the location and so an English version is not relevant or desired.

  Background:
    Given I am a GDS editor

  Scenario: Create a world location news article in a non-English language
    Given a world location "France" exists with a translation for the locale "Français"
    When I draft a French-only world location news article called "Le ministre de la Funk aime faire la fête" associated with "France"
    Then I should see the "Le ministre de la Funk aime faire la fête" article listed in admin with an indication that it is in French
    When I publish the non-English world location news article "Le ministre de la Funk aime faire la fête"
    Then I should see the "Le ministre de la Funk aime faire la fête" article on the French version of the public "France" location page
    And I should be able to view the article "Le ministre de la Funk aime faire la fête" article in French
    But I shoud not see the "Le ministre de la Funk aime faire la fête" article on the English version of the public "France" location page

  Scenario: Editing a right-to-left non-English edition
    Given a draft right-to-left non-English edition exists
    When I view the right-to-left non-English edition in admin
    Then I should see the document preview appears right-to-left
    When I edit the right-to-left non-English edition
    Then I should see that the form text fields are displayed right to left
{'fraction_non_alphanumeric': 0.03309029725182277, 'fraction_numerical': 0.0005608524957936063, 'mean_word_length': 3.6204663212435233, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3131084', 'n_tokens_mistral': 906, 'n_tokens_neox': 872, 'n_words': 580}