Bug Tracker
I’m currently working on a major new version of the datatool package. This may take a while. Please be patient. (Experimental version available for testing.)
ID | 284🔗 |
---|---|
Date: | 2025-01-24 16:22:34 |
Last update: | 2025-01-26 16:33:01 |
Status | Closed (Fixed) |
Category | tracklang |
Version | 1.6.3 |
Summary | Detecting loaded languages with babel |
Sign in to subscribe to notifications about this report.
Description
Hi Nicola,Not really a bug, but according to the manual:
> Unfortunately I can’t find any way of detecting a list
> of languages loaded through babel’s new \babelprovide
> command. As far as I can tell, the only stored list is
> in \bbl@loaded which only contains the languages loaded
> through package options.
I presume what you want is \LocaleForEach. Try:
----------------------------------
\documentclass{article}
\usepackage[danish]{babel}
\babelprovide{hindi}
\begin{document}
\selectlanguage{greek}{Blah}
\LocaleForEach{\message{*** #1 ***}}
\end{document}
-----------------------------------
All ways to load locales are recognized: as package option, with \babelprovide and with lazy loading.
Javier
MWE
No mwe.tex
Evaluation
That's great, thank you. I'll look into it.
Update 2025-01-26: I've added a check for \LocaleForEach
and uploaded v1.6.4 to CTAN.
Comments
0 comments.
Add Comment
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=284