问题
I'm new using yml files (for translations in my framework).
I'm trying to add a "#" inside the translation (will be a twitter share... blabla).
Is this possible, because the file translate it like a comment...
回答1:
Just put the value inside single or double quotes and it won't be treated like a comment. Something like:
en:
twitter:
share: "#hashtag"
来源:https://stackoverflow.com/questions/13711444/write-in-yaml-in-the-string