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

Crowdin stuff #37

Merged
merged 30 commits into from
Aug 29, 2024
Merged

Crowdin stuff #37

merged 30 commits into from
Aug 29, 2024

Conversation

KTrain5169
Copy link
Contributor

@KTrain5169 KTrain5169 commented Jul 22, 2024

Pull request template

Category

  • Add mod to alternatives page
  • Site changes
  • Chore/documentation updates

Describe changes

Added GitHub Action that automatically pulls from Crowdin and updates strings. Also adds a translation progress badge to README because why not?

Why did you do this?

Makes it easier to integrate with Crowdin. The current solution being used at StopMalwareContent (owned by Nitrrine) is apparently not the best? And using the CLI via pnpm may expose secrets.

BREAKING CHANGES

  • Tick this box if you made changes that may or may not break site functionality.

What issues (if any) would this resolve?

Resolves #36

Extra notes?

This PR should not be merged until all secrets are set. The secrets that need to be set are the following:

  • CROWDIN_PROJECT_ID (this can be obtained by having @blryface go to this webpage and finding it there)
  • CROWDIN_PERSONAL_TOKEN (can be created at Crowdin's API key page. Once again requires @blryface to do it probably)
  • A token that "has the repo scope selected" (Crowdin GitHub Action Page said this). I think a contents: write GITHUB_TOKEN should work, but if for some reason it doesn't (I can't test rn due to some factors namely requiring Crowdin strings to be not updated I think?) then a collaborator/owner of the repo needs to create a GitHub PAT with the scope selected.

Checklist

  • I have put clear & concise details about the mod onto the page.
  • Links I have put in are all valid.
  • Mods added are not RATs.
  • I have clearly stated why I want this to be changed.
  • For major changes, I have clearly stated what they are and why I've done them.
  • Any new resources put in are safe and not malicious.
  • I have clearly explained why I have done this.
  • I have proofread the documentation changed and have ensured there are no spelling or grammatical errors.
  • (Workflow updates only) I have tested the workflow to ensure its functionality.
  • I have searched for duplicate PRs and have not found any.
  • I did not read this section.

Vercel will begin deploying to the Preview environment shortly after submitting this pull request. You may click on the "Visit Preview" link below to see a preview of what your changes look like.
If you updated only part of the repository such that it would not modify the website at all, you do not need to see the Vercel deployment.

You may also use the StackBlitz Codeflow button to quickview the PR in the browser and make changes at the same time if necessary.

Copy link

stackblitz bot commented Jul 22, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

vercel bot commented Jul 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
notessential ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 6:40am

@github-actions github-actions bot added add mod Add this mod pls enhancement New feature or request documentation Improvements or additions to documentation BREAKING CHANGE Will something break? labels Jul 22, 2024
@KTrain5169 KTrain5169 removed enhancement New feature or request add mod Add this mod pls BREAKING CHANGE Will something break? labels Jul 22, 2024
@github-actions github-actions bot added add mod Add this mod pls enhancement New feature or request BREAKING CHANGE Will something break? labels Jul 22, 2024
@KTrain5169 KTrain5169 removed enhancement New feature or request add mod Add this mod pls BREAKING CHANGE Will something break? labels Jul 22, 2024
@KTrain5169
Copy link
Contributor Author

sigh why is PR workflow refusing to work properly

@github-actions github-actions bot added add mod Add this mod pls enhancement New feature or request labels Jul 22, 2024
@KTrain5169
Copy link
Contributor Author

@KTrain5169 Blurry has set up all environment variables on the Vercel for NotEssential.

nice...

@KTrain5169 KTrain5169 marked this pull request as ready for review August 16, 2024 05:50
Copy link
Contributor

I've labeled your PR, assigned you and requested/un-requested reviews from the relevant people automatically. If you think I did it wrong, please comment below so one of our maintainers can double-check. Thanks!

@KTrain5169
Copy link
Contributor Author

yes, you did it wrong

they already reviewed it

@github-actions github-actions bot added the Merge conflict identified Label a PR as this if needed label Aug 26, 2024
Copy link
Contributor

This pull request has conflicts with the base branch, which is main. Please resolve them.

@KTrain5169
Copy link
Contributor Author

uh... I kinda can't?

Copy link
Contributor

Resolved conflicts!

@worldwidepixel
Copy link
Member

image

@worldwidepixel
Copy link
Member

Now we just need to check with @KTrain5169 that all is in order and we can merge

@KTrain5169
Copy link
Contributor Author

KTrain5169 commented Aug 28, 2024 via email

@KTrain5169 KTrain5169 merged commit 40449f7 into main Aug 29, 2024
5 checks passed
KTrain5169 added a commit that referenced this pull request Aug 29, 2024
@KTrain5169 KTrain5169 mentioned this pull request Aug 29, 2024
KTrain5169 added a commit that referenced this pull request Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Crowdin Github Action
6 participants