1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 #ifndef _UX_LOCALES_H_ 4 #define _UX_LOCALES_H_ 5 6 #include <types.h> 7 8 /* Unmap the preram_locales if it has been mapped. No-op otherwise. */ 9 void ux_locales_unmap(void); 10 11 /* 12 * Get the localized text for a given string name. 13 * This function will try to read the language ID from vboot API, and search the 14 * corresponding translation from CBFS preram_locales. 15 */ 16 const char *ux_locales_get_text(const char *name); 17 18 #endif // _UX_LOCALES_H_ 19