How to pass a keyval string option given to my package to babel?
I load my package with
\usepackage[languages={ngerman,english}]{mylang}
In package mylang I want to handle this optional languages parameter and hand it over to babel. If the option is missing I want to define a default value.
My attempt:
\usepackage{kvoptions}
\DeclareStringOption{languages}[english,ngerman]
But how to go on from there? I think the default value is set correctly but how to hand it over to babel now? Do I need to run the default process option routine?
For a non keyval value I would use
\DeclareOption{languages}{\PassOptionsToPackage{\CurrentOption}{babel}}
\DeclareOption*{\OptionNotUsed}
kvoptionsallow to useDeclareOption. – Marco Daniel Sep 30 '11 at 11:08