diff --git a/extract_locale.py b/extract_locale.py index a6f1c69..bd64cd9 100644 --- a/extract_locale.py +++ b/extract_locale.py @@ -2,7 +2,7 @@ import json import re # Define regular expression patterns -pattern = r"""i18n\((["'][^"']+["'])\)""" +pattern = r"""i18n\([\s\n\t]*(["'][^"']+["'])[\s\n\t]*\)""" # Initialize the dictionary to store key-value pairs data = {}