fof-oauth:
  admin:
    # This is used by extensions which extend fof/oauth to add additional providers
    configure_button_label: Configure with FoF OAuth
    settings_accessibility_label: "{name} settings"

    permissions:
      moderate_user_providers: Moderate user's linked accounts

    settings:
      advanced:
        heading: Advanced
        log-oauth-errors-label: Log OAuth errors
        log-oauth-errors-help: If enabled, OAuth errors will be logged to the Flarum log. This may help with debugging OAuth issues, but may also contain sensitive information.
      only_icons_label: Only show the Log In Button icons (alternative layout)
      update_email_from_provider_label: Update email address from provider
      update_email_from_provider_help: If enabled, the user's email address will be updated to match the one provided by the OAuth provider on each login to the forum. Not all providers provide the updated email, in which case this setting will not have any effect with those providers.
      disable_avatars_label: Disable avatars from provider
      disable_avatars_help: >
        If enabled, the user's avatar will not be updated to match the provider's avatar on signup.
        Note that this only affects future signups, and will not change the avatar of existing users.
      fullscreen_popup_label: Use Fullscreen Popup for OAuth
      fullscreen_popup_help: When enabled, the OAuth login will open in a fullscreen popup. If this is enabled, the width and height settings will be ignored.
      popup_width_label: OAuth Popup Width
      popup_width_help: Set the width of the OAuth popup window. This setting will be ignored if "Use Fullscreen Popup for OAuth" is enabled.
      popup_height_label: OAuth Popup Height
      popup_height_help: Set the height of the OAuth popup window. This setting will be ignored if "Use Fullscreen Popup for OAuth" is enabled.

      providers:
        callback_url_text: If necessary, set the callback URL to {url}.
        group_label: Assign Group
        group_help: Select a group to automatically assign to users who register using this provider.
        no_group_label: No group assignment

        discord:
          description: Create an app at {link}. Add the redirect URL in the OAuth2 tab.

          client_id_label: => fof-oauth.ref.settings.client_id
          client_secret_label: => fof-oauth.ref.settings.client_secret

        facebook:
          description: Create an app at {link}.

          app_id_label: => fof-oauth.ref.settings.app_id
          app_secret_label: => fof-oauth.ref.settings.app_secret

        github:
          description: Create an OAuth app at {link}.

          client_id_label: => fof-oauth.ref.settings.client_id
          client_secret_label: => fof-oauth.ref.settings.client_secret

        gitlab:
          description: Create an application at {link}. Give the application the <code>read_user</code> scope.

          client_id_label: => fof-oauth.ref.settings.app_id
          client_secret_label: => fof-oauth.ref.settings.app_secret
          domain_label: GitLab Domain

        twitter:
          description: Create an app at {link}. You will need to set a Terms of Service URL and a Privacy Policy URL. Make sure to then add the request email permission.

          api_key_label: API Key
          api_secret_label: API Secret

        google:
          description: Create an application at {link}.

          client_id_label: => fof-oauth.ref.settings.client_id
          client_secret_label: => fof-oauth.ref.settings.client_secret
          hosted_domain_label: Hosted Domain (G suite/Google Apps for Business, optional)

        linkedin:
          description: Create an application at {link}.

          client_id_label: => fof-oauth.ref.settings.client_id
          client_secret_label: => fof-oauth.ref.settings.client_secret

  forum:
    log_in:
      with_button: Log In with {provider}

      # Modify these if your provider requires specific wording.
      # You may use {provider} in the translation.
      with_discord_button: '=> fof-oauth.forum.log_in.with_button'
      with_facebook_button: '=> fof-oauth.forum.log_in.with_button'
      with_github_button: '=> fof-oauth.forum.log_in.with_button'
      with_gitlab_button: '=> fof-oauth.forum.log_in.with_button'
      with_google_button: '=> fof-oauth.forum.log_in.with_button'
      with_linkedin_button: '=> fof-oauth.forum.log_in.with_button'
      with_twitter_button: '=> fof-oauth.forum.log_in.with_button'

    user:
      settings:
        linked-account:
          label: Linked accounts
          last-used-label: Last used
          link-created-label: Link created
          identification-label: "{provider} ID"
          orphaned-account: You have signed in through this provider previously, but this forum has disabled sign-in with this method since.
          help: These linked accounts allow you to sign into the forum using other providers.
          identifier-label: "{provider} ID"
          unlink-confirm: Are you sure you want to remove the link with {provider}? You will no longer be able to sign in to this forum unless you re-authenticate in the future.
    # Modify these if you need to change how the provider name
    # appears in the log in button.
    providers:
      discord: '=> fof-oauth.lib.providers.discord'
      facebook: '=> fof-oauth.lib.providers.facebook'
      github: '=> fof-oauth.lib.providers.github'
      gitlab: '=> fof-oauth.lib.providers.gitlab'
      google: '=> fof-oauth.lib.providers.google'
      linkedin: '=> fof-oauth.lib.providers.linkedin'
      twitter: '=> fof-oauth.lib.providers.twitter'

    signup:
      username_help: Please choose a username to be known by here

    unlink: Remove link

    error:
      bad_verification_code: Invalid or expired verification token. Please try again.
      invalid_state: Invalid state. Please try again.

  lib:
    providers:
      discord: Discord
      facebook: Facebook
      github: GitHub
      gitlab: GitLab
      twitter: Twitter
      google: Google
      linkedin: LinkedIn

  ref:
    settings:
      app_id: App ID
      app_secret: App Secret

      client_id: Client ID
      client_secret: Client Secret

