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.

Per-page translations

See original GitHub issue

What problem does this feature solve?

I have lots of documentation pages with non-repeating text blocks.

I’d like to be able to load the translations for these respective pages only when accessing them.

This would immediately improve a site’s loading speed.

What does the proposed changes look like?

The way I see this, a good solution would be to have the same file structure you have in pages, but inside of the lang folder.

If you’d have pages/about.vue, the corresponding translations would be lang/en/about.js or lang/fr/about.js.

<div align="right">This feature request is available on Nuxt community (#c329)</div>

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:10
  • Comments:22

github_iconTop GitHub Comments

10reactions
yakovyarmocommented, Jan 19, 2021

I there any progress or way to do that?

3reactions
tvldcommented, May 6, 2020

Why not set lazy loading language for specific components in the same format as in nuxt.config.js ?

<script>
export default {
  i18n: {
    locales: [
      {
        name: 'English',
        code: 'en',
        iso: 'en-US',
        file: 'mypage.en.coffee'
      },
      {
        name: 'Nederlands',
        code: 'nl',
        iso: 'nl-NL',
        file: 'mypage.nl.coffee'
      }
    ],
    lazy: true,
    langDir: 'assets/lang/',
    defaultLocale: 'en'
  },

This would not only solve lazy loading but also different fallback per page, which I happen to have use case for … 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Translation costs per page
350-500 words on a page and if we translate one word for EUR 0.065, the translation price per page is somewhere between EUR...
Read more >
Translation Per Page - Trusted Translations
Translation work can be charged in different ways. There are certain standards that are used and they can change depending on the text,...
Read more >
Cheap Certified Translation Services - $20 per page
If you need cheap certified translation services with fast turnaround and guaranteed acceptance at USCIS, get it from us at $20 per page....
Read more >
Per page Vs Per word rate - Translation Services - Frenchside
Per-page price is determined by an estimate number of words on a single page. Per page pricing can be quite expensive and can...
Read more >
Translation Rates - Translation Cost - Translated
The translation of a standard page costs on average US $25, considering an average of 250 words per page, or 1,500 characters including...
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