https://github.com/muukii/l10n.swift
Generate Localizable.strings from yaml (Work in progress)
https://github.com/muukii/l10n.swift
Last synced: about 2 months ago
JSON representation
Generate Localizable.strings from yaml (Work in progress)
- Host: GitHub
- URL: https://github.com/muukii/l10n.swift
- Owner: muukii
- Created: 2016-11-20T10:41:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-05T06:00:53.000Z (over 7 years ago)
- Last Synced: 2025-03-16T17:22:36.255Z (about 2 months ago)
- Language: Swift
- Homepage:
- Size: 8.12 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# L10n
# Example
```yaml
WelcomeViewController:
Label:
Title:
l10n:
Base: "Welcome!"
ja: "ようこそ!"
Message:
l10n:
Base: "Enjoy!"
ja: "楽しんで!"
Button:
Signup:
l10n:
Base: "Signup"
ja: "登録する"
Alert:
OK:
l10n:
Base: "OK"
ja: "確認"
Cancel:
l10n:
Base: "Cancel"
ja: "キャンセル"
App:
l10n:
Base: "Awesome App"
ja: "素晴らしいアプリ"
``````sh
$ ./l10n gen l10n.yaml ./Resorces Base
$ ./l10n gen l10n.yaml ./Resorces ja
```## Results
```
"WelcomeViewController.Label.Title" = "ようこそ!";
"WelcomeViewController.Label.Message" = "楽しんで!";
"WelcomeViewController.Button.Signup" = "登録する";
"Alert.OK" = "確認";
"Alert.Cancel" = "キャンセル";
"App" = "素晴らしいアプリ";
``````
"WelcomeViewController.Label.Title" = "Welcome!";
"WelcomeViewController.Label.Message" = "Enjoy!";
"WelcomeViewController.Button.Signup" = "Signup";
"Alert.OK" = "OK";
"Alert.Cancel" = "Cancel";
"App" = "Awesome App";
```# Installation
```sh
git clone https://github.com/muukii/L10n.git ./L10n
cd L10n
make release
make install
```