jekyll-l10n 1.6.3 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -65
- data/lib/jekyll-l10n/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 044f11a134adf1537d2cc8a7a7f9d66e987c4ebc563da2be4ac1d300d5f44c85
|
|
4
|
+
data.tar.gz: 51ec342b9d30000ee7b06260e24dd0161d725bc3de84dd710d00d9bdb1201f55
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 395f230f582e8ef8d095ac15a316fe1e5e8e9752f42888f106ac356daac9a5cbc8bdf85d908ef6f580754f6fd51286023261fda2333fb90f9e49a988c5145cdc
|
|
7
|
+
data.tar.gz: 6e7abadbe8733b64b714c673819ec01beed62923e3f33e078df542c5ddb3c1758e4c44e4b2482d0b92242e9f6714703641edf624a866bb0219668b9f6b682be4
|
data/README.md
CHANGED
|
@@ -1,74 +1,16 @@
|
|
|
1
1
|
# jekyll-l10n
|
|
2
2
|
|
|
3
|
-
`jekyll-l10n` is a Jekyll plugin that streamlines the localization of static
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Add to your Jekyll site's `Gemfile`:
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
gem "jekyll-l10n", "~> 1.1"
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Run `bundle install`, then enable in `_config.yml`:
|
|
16
|
-
|
|
17
|
-
```yaml
|
|
18
|
-
plugins:
|
|
19
|
-
- jekyll-l10n
|
|
20
|
-
|
|
21
|
-
defaults:
|
|
22
|
-
- scope:
|
|
23
|
-
type: "pages"
|
|
24
|
-
values:
|
|
25
|
-
with_locales: true
|
|
26
|
-
with_locales_data:
|
|
27
|
-
locales: ["es", "fr", "de"]
|
|
28
|
-
locales_dir: "_locales"
|
|
29
|
-
extract_on_build: true
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Quick Example
|
|
33
|
-
|
|
34
|
-
Edit PO files in `_locales/` with translations. On rebuild, your site will generate:
|
|
35
|
-
|
|
36
|
-
- `/es/` - Spanish pages
|
|
37
|
-
- `/fr/` - French pages
|
|
38
|
-
- `/de/` - German pages
|
|
3
|
+
`jekyll-l10n` is a Jekyll plugin that streamlines the localization of static
|
|
4
|
+
websites using industry-standard GNU Gettext PO files. It extracts
|
|
5
|
+
translatable strings from your site's HTML, organizes them into PO files for
|
|
6
|
+
professional translation, and automatically applies translations to generate
|
|
7
|
+
fully localized pages with locale-prefixed URLs.
|
|
39
8
|
|
|
40
9
|
## Documentation
|
|
41
10
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
- **[Getting Started](docs/getting-started/)** - Installation requirements and first-site setup
|
|
45
|
-
- **[Configuration Guide](docs/configuration/)** - All configuration options and settings
|
|
46
|
-
- **[Guides](docs/guides/)** - Fallback modes, Liquid filters, machine translation, incremental builds
|
|
47
|
-
- **[Development](docs/development/)** - Setup, testing, API documentation
|
|
48
|
-
- **[Examples](docs/examples/)** - Real-world usage examples
|
|
49
|
-
|
|
50
|
-
## Key Features
|
|
51
|
-
|
|
52
|
-
- **Automatic extraction** - Extract translatable strings during Jekyll builds
|
|
53
|
-
- **Professional workflows** - Edit translations using standard Gettext tools (Poedit, Weblate, etc.)
|
|
54
|
-
- **Fallback modes** - Display English, mark untranslated strings, or leave blank
|
|
55
|
-
- **Incremental builds** - Skip regenerating unchanged localized pages for faster builds
|
|
56
|
-
- **Machine translation** - Optional LibreTranslate integration for initial translations
|
|
57
|
-
- **Compendium files** - Share common translations across your entire site
|
|
58
|
-
|
|
59
|
-
## Requirements
|
|
60
|
-
|
|
61
|
-
- **Ruby**: >= 2.7.0
|
|
62
|
-
- **Jekyll**: >= 4.0, < 5.0
|
|
11
|
+
For complete documentation, configuration options, and examples, visit the
|
|
12
|
+
[documentation site](https://centos.gitlab.io/artwork/centos-web/jekyll-l10n/).
|
|
63
13
|
|
|
64
14
|
## License
|
|
65
15
|
|
|
66
16
|
MIT License - see LICENSE file for details.
|
|
67
|
-
|
|
68
|
-
## Contributing
|
|
69
|
-
|
|
70
|
-
1. Fork the repository
|
|
71
|
-
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
|
|
72
|
-
3. Commit your changes (`git commit -m 'feat: Add amazing feature'`)
|
|
73
|
-
4. Push to the branch (`git push origin feature/amazing-feature`)
|
|
74
|
-
5. Open a Pull Request
|
data/lib/jekyll-l10n/version.rb
CHANGED
|
@@ -6,6 +6,6 @@ module Jekyll
|
|
|
6
6
|
# Regenerated alongside the gemspec on every `make jekyll-l10n.gemspec`
|
|
7
7
|
# run (locally or in CI), so it always matches spec.version in the built
|
|
8
8
|
# gem. Any hand edit is overwritten on the next run.
|
|
9
|
-
VERSION = '
|
|
9
|
+
VERSION = '1.6.4'
|
|
10
10
|
end
|
|
11
11
|
end
|