Skip to content

Conversation

dzienisz
Copy link
Member

No description provided.

Copy link

netlify bot commented Aug 28, 2025

Deploy Preview for tolgee-docs ready!

Name Link
🔨 Latest commit 0b2afef
🔍 Latest deploy log https://app.netlify.com/projects/tolgee-docs/deploys/68c016794b8f74000838944a
😎 Deploy Preview https://deploy-preview-996--tolgee-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

**A: This depends on your approach to translation management.**

If you follow Tolgee's recommended approach of using the platform as the single source of truth:
- You would search for keys in your code: `grep -r "save-btn" src/`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yoi don't need to search for the key usually, because you can click it directly in the app. So the correct approach is to click the string in the app and then search for the key.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is tle CLI docs, you should mention that in-context is only for the native JS SDKs.

- A translator or PM has already refined the wording in the platform
- The two sources of truth conflict with each other

### Q: Can I search for strings in my code if I only store keys?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can I search for strings in my code if I only use keys and not default values?


### Q: What about fallback translations for when the platform is unavailable?

**A: Use the pull command to maintain local fallback files.**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should NEVER use API key in the production. For production, you have 2 options:

  • Exporting keys as static assets
  • using CDN

Don't know what support question you cover by this, but now it's misleading, because it seems like you should rely on platform in production, which you should never do.


**A: This is a known limitation that may be addressed in future versions.**

Currently, the CLI focuses on extracting keys and syncing with the platform. Enhanced validation features like duplicate detection are being considered for future releases.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am confused about this "duplicate detection". Usually people mean that they don't want to transalte same phrases twice. They don't want multiple keys containing same string.

But we usually recommend agains de-duplication, since same strings can have multiple meanings and you want to be able to change it just in single place where it's used.

@dzienisz dzienisz self-assigned this Sep 8, 2025
@dzienisz dzienisz force-pushed the feat/cli-limitations branch from 43fc628 to 3ad3ca2 Compare September 9, 2025 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants