Product error handling
This commit is contained in:
@@ -32,9 +32,10 @@
|
||||
#translatable = undefined
|
||||
#isafety = undefined
|
||||
#replacable = undefined
|
||||
locale = Qstorage.getItem('locale') || 'en'
|
||||
parts = path.split(".")
|
||||
#accessor = "$translations.#{$locale}[\"#{parts.join("\"][\"")}\"]"
|
||||
result = $translations[$locale]
|
||||
result = $translations[locale]
|
||||
try
|
||||
result = result[part] for part in parts
|
||||
catch err
|
||||
|
||||
Reference in New Issue
Block a user