mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Add setting to manage visibility of vote count, vote button and decide root page (#197)
This commit is contained in:
committed by
GitHub
parent
d4242dd78e
commit
e7335f5622
@@ -3,9 +3,12 @@ import I18n from 'i18n-js';
|
||||
|
||||
export const getLabel = (
|
||||
entity: string,
|
||||
attribute: string,
|
||||
attribute: string = undefined,
|
||||
) => (
|
||||
I18n.t(`activerecord.attributes.${entity}.${attribute}`)
|
||||
attribute ?
|
||||
I18n.t(`activerecord.attributes.${entity}.${attribute}`)
|
||||
:
|
||||
I18n.t(`activerecord.models.${entity}.one`)
|
||||
);
|
||||
|
||||
export const getValidationMessage = (
|
||||
|
||||
Reference in New Issue
Block a user