mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Collect translator functions together
This commit is contained in:
@@ -6,7 +6,7 @@ require('coffee-script');
|
||||
import i18n from '../../../script/i18n.coffee';
|
||||
|
||||
//----------------------------------------
|
||||
// Translator Helper
|
||||
// Translator Helpers
|
||||
//----------------------------------------
|
||||
export function translator(string, vars={a: 'a'}) {
|
||||
let func = (lang) => {
|
||||
@@ -18,10 +18,6 @@ export function translator(string, vars={a: 'a'}) {
|
||||
return func;
|
||||
};
|
||||
|
||||
//----------------------------------------
|
||||
// Formatting Helper
|
||||
//----------------------------------------
|
||||
|
||||
export function formatForTranslator(name) {
|
||||
let camelCasedName = camelCase(name);
|
||||
let capitalCamelCasedName = capitalize(camelCasedName);
|
||||
|
||||
Reference in New Issue
Block a user