Skip to content

Commit 5d49fe8

Browse files
committed
Merge branch 'main' of github.com:untra/polyglot
2 parents 3282f92 + 6cb59e7 commit 5d49fe8

21 files changed

+545
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ rspec.json
5454
rspec.xml
5555

5656
# NOTE: this will need to be ungitignored to run publish
57-
# site/_site
57+
site/_site

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
jekyll-polyglot (1.11.0)
4+
jekyll-polyglot (1.12.0)
55
jekyll (>= 4.0, >= 3.0)
66

77
GEM

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ Estos somos nosotros!
113113
Additionally, if you are also using the `jekyll-redirect-from` plugin, pages coordinated this way will automatically have redirects created between pages.
114114
So `/es/about` will automatically redirect to `/es/acerca-de` and `/acerca-de` can redirect to `/about`. If you use this approach, be sure to also employ a customized [redirect.html](https://github.com/untra/polyglot/blob/main/site/_layouts/redirect.html).
115115

116+
As of version 1.12, Polyglot also properly supports `redirect_from` frontmatter across sublanguages. When you add redirect paths to pages in non-default languages, Polyglot will correctly scope those redirects to each language's prefix, preventing duplicate redirects and ensuring proper routing.
117+
116118
#### Fallback Language Support
117119
Lets say you are building your website. You have an `/about/` page written in *english*, *german* and
118120
*swedish*. You are also supporting a *french* website, but you never designed a *french* version of your `/about/` page!
@@ -346,6 +348,10 @@ These are talented and considerate software developers across the world that hav
346348
* [@obfusk](https://github.com/obfusk) [1.5.0](https://polyglot.untra.io/2021/07/17/polyglot-1.5.0/)
347349
* [@eighthave](https://github.com/eighthave) [1.5.0](https://polyglot.untra.io/2021/07/17/polyglot-1.5.0/)
348350
* [@george-gca](https://github.com/george-gca) [pt-BR support](https://polyglot.untra.io/pt-BR/2024/02/29/localized-variables.md)
351+
* [@PanderMusubi](https://github.com/PanderMusubi) - 1.12 / jekyll-minimal-mistakes-polyglot demo
352+
* [@GruberMarkus](https://github.com/GruberMarkus) - redirect anchor support
353+
* [@rathboma](https://github.com/rathboma) - page.rendered_lang / sublanguage redirects
354+
* [@manabu-nakamura](https://github.com/manabu-nakamura) - Japanese strings
349355

350356
### Other Websites Built with Polyglot
351357
Feel free to open a PR and list your multilingual blog here you may want to share:
@@ -364,6 +370,7 @@ Feel free to open a PR and list your multilingual blog here you may want to shar
364370
* [AnotherTurret just another study note blog](https://aturret.space/)
365371
* [Diciotech is a collaborative online tech dictionary](https://diciotech.netlify.app/)
366372
* [Yunseo Kim's Study Notes](https://www.yunseo.kim/)
373+
* [Beekeeper Studio](https://www.beekeeperstudio.io/)
367374

368375
## 2.0 Roadmap
369376
* [x] - **site language**: portuguese Brazil `pt-BR`

jekyll-polyglot.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'jekyll-polyglot'
3-
s.version = '1.11.0'
3+
s.version = '1.12.0'
44
s.summary = 'I18n plugin for Jekyll Blogs'
55
s.description = 'Fast open source i18n plugin for Jekyll blogs.'
66
s.authors = ['Samuel Volin']

make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@echo off
2-
set VERSION="1.11.0"
2+
set VERSION="1.12.0"
33
REM this is running tests
44
CALL gem build jekyll-polyglot.gemspec
55
CALL gem install jekyll-polyglot-%VERSION%.gem

make.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
VERSION="1.11.0"
2+
VERSION="1.12.0"
33
# this is running tests
44
gem build jekyll-polyglot.gemspec
55
gem install jekyll-polyglot-$VERSION.gem

site/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ description:
123123

124124
paginate: 5
125125
# Custom vars
126-
version: 1.11.0
126+
version: 1.12.0
127127
# practical values langsep are "|", "•", "·", "-", "–"
128128
langsep: ""
129129

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
layout: post
3+
title: Polyglot 1.12 - redirect improvements and community contributions
4+
lang: en
5+
description: Jekyll Polyglot 1.12.0 brings improved redirect support for sublanguages, fallback page detection, and new site language support
6+
---
7+
8+
Jekyll-Polyglot `1.12.0` has been released! This release focuses on improving redirect handling and includes several community contributions.
9+
10+
## redirect improvements
11+
12+
This release includes important improvements to how redirects work with Polyglot:
13+
14+
- **PR #275**: Anchor tag preservation in redirects - thanks to a solution from [@GruberMarkus](https://github.com/GruberMarkus), redirect URLs now properly preserve anchor tags, ensuring users land exactly where they intended.
15+
16+
- **PR #293**: Sublanguage redirect support for the jekyll-redirect-from plugin - suggested by [@rathboma](https://github.com/rathboma), Polyglot now correctly scopes `redirect_from` frontmatter across sublanguages, preventing duplicate redirects and ensuring proper routing for non-default language pages.
17+
18+
## detect fallback pages with page.rendered_lang
19+
20+
- **PR #283**: New `page.rendered_lang` variable - contributed by [@rathboma](https://github.com/rathboma), this new liquid variable lets you detect when a page is being rendered as a fallback. When `page.rendered_lang != site.active_lang`, you know the page content hasn't been translated yet.
21+
22+
The [/about](/about) page has been updated with instructions on how to best use this `page.rendered_lang` convenience liquid variable.
23+
24+
## new language support
25+
26+
- **PR #280**: Italian and Turkish language support has been added to the Polyglot documentation site, expanding our multilingual reach.
27+
28+
## community contributions
29+
30+
Several community members contributed improvements to the project:
31+
32+
- **PR #277**: Updated sidebar rich text definitions, improving the site's multilingual presentation.
33+
34+
- **PR #288**: Japanese rich text strings contributed by [@manabu-nakamura](https://github.com/manabu-nakamura), enhancing the Japanese language experience.
35+
36+
A special thanks to [@PanderMusubi](https://github.com/PanderMusubi) for the [jekyll-minimal-mistakes-polyglot](https://github.com/PanderMusubi/jekyll-minimal-mistakes-polyglot) demo, showing how to integrate Polyglot with the popular Minimal Mistakes theme.
37+
38+
Thank you to all contributors who made this release possible!
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
layout: post
3+
title: Polyglot 1.12 - تحسينات إعادة التوجيه ومساهمات المجتمع
4+
lang: ar
5+
description: Jekyll Polyglot 1.12.0 يجلب دعم إعادة التوجيه المحسن للغات الفرعية واكتشاف صفحات الاحتياطي ودعم لغات موقع جديدة
6+
---
7+
8+
تم إصدار Jekyll-Polyglot `1.12.0`! يركز هذا الإصدار على تحسين معالجة إعادة التوجيه ويتضمن العديد من مساهمات المجتمع.
9+
10+
## تحسينات إعادة التوجيه
11+
12+
يتضمن هذا الإصدار تحسينات مهمة في كيفية عمل إعادة التوجيه مع Polyglot:
13+
14+
- **PR #275**: الحفاظ على علامات الربط في إعادة التوجيه - بفضل حل من [@GruberMarkus](https://github.com/GruberMarkus)، تحافظ عناوين URL لإعادة التوجيه الآن بشكل صحيح على علامات الربط، مما يضمن وصول المستخدمين إلى المكان الذي قصدوه بالضبط.
15+
16+
- **PR #293**: دعم إعادة توجيه اللغات الفرعية لإضافة jekyll-redirect-from - اقترحه [@rathboma](https://github.com/rathboma)، يحدد Polyglot الآن بشكل صحيح نطاق frontmatter `redirect_from` عبر اللغات الفرعية، مما يمنع إعادة التوجيه المكررة ويضمن التوجيه الصحيح لصفحات اللغات غير الافتراضية.
17+
18+
## اكتشاف صفحات الاحتياطي باستخدام page.rendered_lang
19+
20+
- **PR #283**: متغير `page.rendered_lang` الجديد - ساهم به [@rathboma](https://github.com/rathboma)، يتيح لك متغير liquid الجديد هذا اكتشاف متى يتم عرض صفحة كاحتياطي. عندما `page.rendered_lang != site.active_lang`، تعرف أن محتوى الصفحة لم يتم ترجمته بعد.
21+
22+
تم تحديث صفحة [/about](/about) بتعليمات حول كيفية استخدام متغير liquid المريح `page.rendered_lang` بشكل أفضل.
23+
24+
## دعم لغات جديدة
25+
26+
- **PR #280**: تمت إضافة دعم اللغة الإيطالية والتركية إلى موقع توثيق Polyglot، مما يوسع نطاقنا متعدد اللغات.
27+
28+
## مساهمات المجتمع
29+
30+
ساهم العديد من أعضاء المجتمع بتحسينات للمشروع:
31+
32+
- **PR #277**: تعريفات نص منسق محدثة للشريط الجانبي، مما يحسن العرض متعدد اللغات للموقع.
33+
34+
- **PR #288**: سلاسل نص منسق يابانية ساهم بها [@manabu-nakamura](https://github.com/manabu-nakamura)، مما يعزز تجربة اللغة اليابانية.
35+
36+
شكر خاص لـ [@PanderMusubi](https://github.com/PanderMusubi) على عرض [jekyll-minimal-mistakes-polyglot](https://github.com/PanderMusubi/jekyll-minimal-mistakes-polyglot)، الذي يوضح كيفية دمج Polyglot مع قالب Minimal Mistakes الشهير.
37+
38+
شكراً لجميع المساهمين الذين جعلوا هذا الإصدار ممكناً!
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
layout: post
3+
title: Polyglot 1.12 - Weiterleitungsverbesserungen und Community-Beiträge
4+
lang: de
5+
description: Jekyll Polyglot 1.12.0 bringt verbesserte Weiterleitungsunterstützung für Untersprachen, Fallback-Seitenerkennung und neue Website-Sprachunterstützung
6+
---
7+
8+
Jekyll-Polyglot `1.12.0` wurde veröffentlicht! Diese Version konzentriert sich auf die Verbesserung der Weiterleitungsbehandlung und enthält mehrere Community-Beiträge.
9+
10+
## Weiterleitungsverbesserungen
11+
12+
Diese Version enthält wichtige Verbesserungen bei der Funktionsweise von Weiterleitungen mit Polyglot:
13+
14+
- **PR #275**: Anker-Tag-Erhaltung bei Weiterleitungen - dank einer Lösung von [@GruberMarkus](https://github.com/GruberMarkus) erhalten Weiterleitungs-URLs jetzt korrekt Anker-Tags, sodass Benutzer genau dort landen, wo sie hinwollten.
15+
16+
- **PR #293**: Untersprachen-Weiterleitungsunterstützung für das jekyll-redirect-from Plugin - vorgeschlagen von [@rathboma](https://github.com/rathboma), begrenzt Polyglot jetzt korrekt `redirect_from` Frontmatter über Untersprachen hinweg, verhindert doppelte Weiterleitungen und stellt korrektes Routing für Nicht-Standard-Sprachseiten sicher.
17+
18+
## Fallback-Seiten mit page.rendered_lang erkennen
19+
20+
- **PR #283**: Neue `page.rendered_lang` Variable - beigetragen von [@rathboma](https://github.com/rathboma), ermöglicht diese neue Liquid-Variable zu erkennen, wenn eine Seite als Fallback gerendert wird. Wenn `page.rendered_lang != site.active_lang`, wissen Sie, dass der Seiteninhalt noch nicht übersetzt wurde.
21+
22+
Die [/about](/about) Seite wurde mit Anweisungen aktualisiert, wie diese `page.rendered_lang` Komfort-Liquid-Variable am besten verwendet wird.
23+
24+
## neue Sprachunterstützung
25+
26+
- **PR #280**: Italienische und türkische Sprachunterstützung wurde zur Polyglot-Dokumentationsseite hinzugefügt und erweitert unsere mehrsprachige Reichweite.
27+
28+
## Community-Beiträge
29+
30+
Mehrere Community-Mitglieder haben Verbesserungen zum Projekt beigetragen:
31+
32+
- **PR #277**: Aktualisierte Seitenleisten-Rich-Text-Definitionen, die die mehrsprachige Präsentation der Website verbessern.
33+
34+
- **PR #288**: Japanische Rich-Text-Strings beigetragen von [@manabu-nakamura](https://github.com/manabu-nakamura), die das japanische Spracherlebnis verbessern.
35+
36+
Ein besonderer Dank geht an [@PanderMusubi](https://github.com/PanderMusubi) für die [jekyll-minimal-mistakes-polyglot](https://github.com/PanderMusubi/jekyll-minimal-mistakes-polyglot) Demo, die zeigt, wie Polyglot mit dem beliebten Minimal Mistakes Theme integriert werden kann.
37+
38+
Vielen Dank an alle Mitwirkenden, die diese Version möglich gemacht haben!

0 commit comments

Comments
 (0)