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

[de_CH]: Synced with [de] #4934

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kohlerdominik
Copy link
Contributor

No description provided.

@kohlerdominik
Copy link
Contributor Author

@andrey-helldar Is there any existing mechanic, so we could automatically sync [de_CH] from [de] for missing keys? de_CH is very similar to de, and fits out of the box easily.

There is one conversion that could be auto-applied:

  • ß does not exist in de_CH, and should be replaced with ss. So search-replace ßss.

As soon as before-values in de and de_CH are not equal, they should no longer be auto-synced, obviously.

@andrey-helldar
Copy link
Member

There are no mechanics for synchronizing these languages because, despite their similarities, they have completely different localization codes.

To replace ß with ss, you can use file-by-file text replacement in the IDE (Ctrl+H).

@andrey-helldar
Copy link
Member

@sotten hey! Can you check another one?

@kohlerdominik
Copy link
Contributor Author

There are no mechanics for synchronizing these languages because, despite their similarities, they have completely different localization codes.

To replace ß with ss, you can use file-by-file text replacement in the IDE (Ctrl+H).

Hi
Yes, this is what I do right now. But it requires someone to do it manually; so if there would have been something similar in place, we could have automated it. But I agree that it's not worth to do it for one language, hence the question.

@andrey-helldar
Copy link
Member

Purely technically it is possible to create such a mechanism, but it would require some tweaks so as not to break other languages. Plus, the two would be hardwired to each other.

It should also be taken into account that not always “neighboring” languages have identical translations.

For example, we plan to translate different styles: business, official, colloquial, etc.. This can also cause errors when synchronizing two languages. For example: https://github.com/orgs/Laravel-Lang/discussions/124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants