question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

i18n: Handling Missing Files

See original GitHub issue

@RandellDawson and I pulled down #40906 to test the build. Adding espanol to the allowed curriculum languages allowed the ensure-env run to pass, as expected. We added responsive-web-design to the is-audited.js, and ran clean-and-develop.

The GraphQL query errors out, presumably because the espanol folder is missing challenges, presumably.

image

The build fails, and the development instance will not load.

While the intention is to have a 100% completion of a superblock prior to enabling it in is-audited.js, this will potentially become a significant issue going forward as we add/remove challenge files. There are definite concerns here, especially looking forward to the V7 curriculum, where modifications to the flow will break or block deployments.

@ojeytonwilliams - is it possible I missed a configuration during the testing? I noted the comment in the is-audited.js file that explicitly states the superblock should be 100% complete, so a build error is what I was expecting, but is this the ideal approach?

@raisedadead - I’m not sure of the specifics of the deployment pipelines. Would a merge to production-current trigger a build on all i18n sites simultaneously? Or are we able to push each one independently?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
naomi-lgbtcommented, Feb 5, 2021

Catching up on the conversation in chat…

I pulled down the i18n-sync-learn branch, changed the is-audited and allLangs values to allow the espanol curriculum, and ran a development build. It looks like we’ve configured Crowdin correctly to send down source files for incomplete translations - I had no build errors this time and was able to explore the curriculum.

I think this is safe to close now. 🙂

0reactions
ojeytonwilliamscommented, Feb 4, 2021

Would it be better, then, to start off with all of the English files copied in to the Espanol folder

Yes and no. If we can get all the files from Crowdin, defaulting to translated when we want to, that’s fine. However, if we can’t then we’ll need to re-work how we build the translated curricula.

So, in a slight rush I asked Nick to wait. However if we just want to test things out, it’s fine to copy the English over to the Spanish for now.

How we handle things depends on precisely what we’ll be getting back from Crowdin, but for testing it’s fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

i18n language files. How to manage missing and unused keys
Managing language files can be a pain. I just found the i18n-tasks gem on github to help find missing and unused keys in...
Read more >
Vue-i18n Key Fallback — Handle Missing Keys and Keep ...
In Evionica we've encountered a need for a fallback for non-recognized translation keys.
Read more >
Angular(i18n): Missing Translations | by Sujana Pathuri
It generates a file messages.xlf in the project src folder. Put the copy in the local folder which contains language-specific translation files.
Read more >
Rails Internationalization (I18n) API - Ruby on Rails Guides
This guide will walk you through the I18n API and contains a tutorial on how to internationalize a Rails application from the start....
Read more >
i18n-tasks | Manage translation and localization with static ...
i18n -tasks health checks if any keys are missing or not used, that interpolations variables are consistent across locales, and that all the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found