microsoft / microsoft/LocalizedStringKit
What is the use-case for this library compared to Xcode - Export for Localization and import?
Personne n'a encore pris cette issue.
- Langage dominant
- Python
- Étoiles
- 293
- Forks
- 12
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
I am trying to better understand the use-case for this library compared to the standard localisation workflow in Xcode.
In the readme you say:
LocalizedStringKit is a tool that lets you write English strings directly into your source code and generate the required .strings files later. No more manually managing string keys or remembering to add them to the strings file later. All you do is change:
label.text = NSLocalizedString("TERMS_SCREEN_MAIN_HEADER", "Comment here...")
...
If you use NSLocalizedString, you can write English strings directly into the source code as the key parameter (in the same way as with the replacement function in this library). Then to generate the strings files for the other languages, in Xcode,
- Select the project in the sidebar
- Select, menu item Editor -> Export for Localization
- Add the target translations to the resulting XLIFF
- Then import again with Editor -> Import Localisation
Result: Xcode will create the strings files and add them to the project
Furthermore, If you alternatively use keys such as NSLocalizedString("my.string.a", ..), you can export the development language, in the same way as described above, and import to generate the strings file for the development language.
Is this library for when you don't use Xcode, or don't want to use the xliff-based workflow (for some reason)?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Examinez la description du README parallèlement au workflow Xcode Editor → Export for Localization et Import Localization décrit dans l’issue. Clarifiez le cas d’utilisation prévu de la bibliothèque et déterminez si elle cible les projets qui n’utilisent pas Xcode ni le workflow XLIFF ; le travail sera terminé lorsque le README comparera clairement ces approches.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- documentation, localization
- Type d'issue
- Documentation
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100