<script>
import { store } from "@/store";
+import afterRawLoad from "@/utils/afterRawLoad";
export default {
name: "my-variants",
data: function() {
},
computed: {
content: function() {
- // (AJAX) Request to get rules content (plain text, HTML)
return (
- require(
- "raw-loader!@/translations/variants/" + this.st.lang + ".pug"
+ afterRawLoad(
+ require(
+ "raw-loader!@/translations/variants/" + this.st.lang + ".pug"
).default
- .replace('export default "', "")
- .replace(/";$/, "")
- // Next two lines fix a weird issue after last update (2019-11)
- .replace(/\\n/g, " ")
- .replace(/\\"/g, '"')
+ )
);
}
},