fix(translations): Extract messages from .vue files (#8403)

This commit is contained in:
Faris Ansari 2019-09-13 12:42:04 +05:30 committed by GitHub
parent 5a5886405e
commit e2bc9c479f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -485,7 +485,7 @@ def get_all_messages_from_js_files(app_name=None):
continue
for fname in files:
if fname.endswith(".js") or fname.endswith(".html"):
if fname.endswith(".js") or fname.endswith(".html") or fname.endswith('.vue'):
messages.extend(get_messages_from_file(os.path.join(basepath, fname)))
return messages
@ -755,4 +755,4 @@ def get_translations(source_name):
filters = {
'source_name': source_name
}
)
)