dodo / node-slug

slugifies even utf-8 chars!
MIT License
1.07k stars 94 forks source link

updated latin characters #19

Closed hochitom closed 10 years ago

hochitom commented 10 years ago

updated some latin characters to be replaced with correct german opponent

dodo commented 10 years ago

sorry, but i would like to keep that internationalized.

This little snippet let you achive the same result as this PR but only (globally) for your project:

slug.defaults.charmap['Ä'] = 'AE';
slug.defaults.charmap['Ö'] = 'OE';
slug.defaults.charmap['Ü'] = 'UE';
// and so on …