i18n GetText Plugin for Eleventy

Fruits

Apple

Method calls
Shortcodes
Template content
Click on the fruit to see more details.
Click on the fruit to see more details.
Template content pluralized
These fruits are excellent.
These fruits are excellent.
Template content with text replacment
The apple keeps the doctor away.
The apple keeps the doctor away.

Data content
Green apple
Green apple
Data content pluralized with text replacment
We currently have 3 green apples in stock.
We currently have 3 green apples in stock.

String interpolation
The apple keeps the doctor away (3).
The apple keeps the doctor away (3).
String interpolation pluralized
These 3 fruits are excellent.
These 3 fruits are excellent.

Localize URL
/en-us/index.html
/en-us/index.html
Relocalize /pt-pt/index.html to fr-fr
/fr-fr/index.html

Banana

Method calls
Shortcodes
Template content
Click on the fruit to see more details.
Click on the fruit to see more details.
Template content pluralized
This fruit is excellent.
This fruit is excellent.
Template content with text replacment
The banana keeps the doctor away.
The banana keeps the doctor away.

Data content
Yellow banana
Yellow banana
Data content pluralized with text replacment
We currently have 1 yellow banana in stock.
We currently have 1 yellow banana in stock.

String interpolation
The banana keeps the doctor away (1).
The banana keeps the doctor away (1).
String interpolation pluralized
This single fruit is excellent.
This single fruit is excellent.

Localize URL
/en-us/index.html
/en-us/index.html
Relocalize /pt-pt/index.html to fr-fr
/fr-fr/index.html

Dates and times

Moment.js localized formats

Method calls
Shortcodes
LT
10:36 PM
10:36 PM
LTS
10:36:41 PM
10:36:41 PM
L
07/27/2020
07/27/2020
l
7/27/2020
7/27/2020
LL
July 27, 2020
July 27, 2020
ll
Jul 27, 2020
Jul 27, 2020
LLL
July 27, 2020 10:36 PM
July 27, 2020 10:36 PM
lll
Jul 27, 2020 10:36 PM
Jul 27, 2020 10:36 PM
LLLL
Monday, July 27, 2020 10:36 PM
Monday, July 27, 2020 10:36 PM
llll
Mon, Jul 27, 2020 10:36 PM
Mon, Jul 27, 2020 10:36 PM