Skip to contents

Removes all custom translations, reverting to built-in translations only.

Usage

reset_custom_translations(locale = NULL)

Arguments

locale

Character or NULL. If provided, only reset translations for the specified locale. If NULL (default), reset all custom translations.

Value

Invisibly returns the removed custom translations.

Examples

# Add custom translation
add_translation("test_key", c(en = "Test", de = "Test"))

# Reset all custom translations
reset_custom_translations()