Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Fixed Supported Language File 🌐 #123

Merged
merged 2 commits into from
Jul 8, 2022
Merged

Conversation

GrantBirki
Copy link
Member

Add Fixed Supported Language File 🌐

This pull request adds a fixed language file which is used to define an explicit list of supported languages. As we have new languages, we can add them to this file which is checked into GitHub.

The reason for adding this is because this website is a "client" of the API. The API only has so many supported languages at this time and it has users from all over the world. If a user tries to make an API call (currently, before this fix), the website would use their locale in the API query. If an unsupported language was used, the whole website would fall apart.

Updating Language Codes

The screenshot below shows where the latest supported LanguageCodes can be found

LanguageCode enum in public graphql docs:

image

We can update the supported-languages.json file with any languages as they become supported and appear in our schema

@GrantBirki GrantBirki added bug Something isn't working language Changes related to wording on the site or translations labels Jul 8, 2022
@GrantBirki GrantBirki requested a review from a team as a code owner July 8, 2022 03:00
@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2022

👋 Thanks for opening a pull request!

If you are new, please check out the trimmed down summary of our deployment process below:

  1. 👀 Observe the CI jobs and tests to ensure they are passing

  2. ✔️ Obtain an approval/review on this pull request

  3. 🚀 Deploy your pull request to the development environment with .deploy to development

  4. 🚀 Deploy your pull request to the production environment with .deploy

    If anything goes wrong, rollback with .deploy main

  5. 🎉 Merge!

Note: If you have a larger change and want to block deployments, you can run .lock --reason <reason> to lock all other deployments (remove with .unlock)

@GrantBirki
Copy link
Member Author

related: #118, #122

@GrantBirki
Copy link
Member Author

.deploy to development

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2022

Deployment Triggered

GrantBirki, started a branch deployment 🚀

  • Branch: add-supported-languages
  • Mode: branch

You can watch the progress here 🔗

@github-actions github-actions bot temporarily deployed to development July 8, 2022 03:03 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2022

Deployment Results

  • Status: success ✔️
  • Mode: branch 🚀
  • Branch: add-supported-languages

Successfully deployed branch add-supported-languages

Actor: GrantBirki, Action: issue_comment, Workflow: branch-deploy

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 8, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: af96ef3
Status: ✅  Deploy successful!
Preview URL: https://8066cf11.tarkov-dev.pages.dev

View logs

@GrantBirki
Copy link
Member Author

.deploy

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2022

Deployment Triggered

GrantBirki, started a branch deployment 🚀

  • Branch: add-supported-languages
  • Mode: branch

You can watch the progress here 🔗

@github-actions github-actions bot temporarily deployed to production July 8, 2022 03:11 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2022

Deployment Results

  • Status: success ✔️
  • Mode: branch 🚀
  • Branch: add-supported-languages

Successfully deployed branch add-supported-languages

Actor: GrantBirki, Action: issue_comment, Workflow: branch-deploy

@GrantBirki GrantBirki merged commit 6af4279 into main Jul 8, 2022
@GrantBirki GrantBirki deleted the add-supported-languages branch July 8, 2022 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working language Changes related to wording on the site or translations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants