We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
No way to set default notification setting for watched projects
### Describe the issue

Thanks for this great project. On the notifications part there is some room for improvements as when you come from transifex, you get a lot of useful notifications which encourage user to finish the translation of a language when stuff changes. Would it be possible to set some defaults for the "New translation component was created" and "New string is available for translation" settings. As IMO for these settings an instant notification should be sent out. Probably some more would be nice too.

### I already tried

- [X] I've read and searched [the documentation](https://docs.weblate.org/).
- [X] I've searched for similar issues in this repository.

### Steps to reproduce the behavior

1. Got to /accounts/profile/#notifications__1
2. Check the component and translation notifications

### Expected behavior

Some default settings to adjust, either in the GUI or by configuration variable.

### Screenshots

_No response_

### Exception traceback

_No response_

### How do you run Weblate?

Docker container

### Weblate versions

_No response_

### Weblate deploy checks

_No response_

### Additional context

Kind of related to #5155.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `weblate/accounts/data.py`
Content:
```
1 # Copyright © Michal Čihař <michal@weblate.org>
2 #
3 # SPDX-License-Identifier: GPL-3.0-or-later
4 
5 from weblate.accounts.notifications import (
6     FREQ_INSTANT,
7     SCOPE_ADMIN,
8     SCOPE_ALL,
9     SCOPE_WATCHED,
10 )
11 
12 DEFAULT_NOTIFICATIONS = [
13     (SCOPE_ALL, FREQ_INSTANT, "MentionCommentNotificaton"),
14     (SCOPE_WATCHED, FREQ_INSTANT, "LastAuthorCommentNotificaton"),
15     (SCOPE_WATCHED, FREQ_INSTANT, "MentionCommentNotificaton"),
16     (SCOPE_WATCHED, FREQ_INSTANT, "NewAnnouncementNotificaton"),
17     (SCOPE_ADMIN, FREQ_INSTANT, "MergeFailureNotification"),
18     (SCOPE_ADMIN, FREQ_INSTANT, "ParseErrorNotification"),
19     (SCOPE_ADMIN, FREQ_INSTANT, "NewTranslationNotificaton"),
20     (SCOPE_ADMIN, FREQ_INSTANT, "NewAlertNotificaton"),
21     (SCOPE_ADMIN, FREQ_INSTANT, "NewAnnouncementNotificaton"),
22 ]
23 
24 
25 def create_default_notifications(user) -> None:
26     for scope, frequency, notification in DEFAULT_NOTIFICATIONS:
27         user.subscription_set.get_or_create(
28             scope=scope, notification=notification, defaults={"frequency": frequency}
29         )
30
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/weblate/accounts/data.py b/weblate/accounts/data.py
--- a/weblate/accounts/data.py
+++ b/weblate/accounts/data.py
@@ -4,6 +4,7 @@
 
 from weblate.accounts.notifications import (
     FREQ_INSTANT,
+    FREQ_WEEKLY,
     SCOPE_ADMIN,
     SCOPE_ALL,
     SCOPE_WATCHED,
@@ -14,6 +15,7 @@
     (SCOPE_WATCHED, FREQ_INSTANT, "LastAuthorCommentNotificaton"),
     (SCOPE_WATCHED, FREQ_INSTANT, "MentionCommentNotificaton"),
     (SCOPE_WATCHED, FREQ_INSTANT, "NewAnnouncementNotificaton"),
+    (SCOPE_WATCHED, FREQ_WEEKLY, "NewStringNotificaton"),
     (SCOPE_ADMIN, FREQ_INSTANT, "MergeFailureNotification"),
     (SCOPE_ADMIN, FREQ_INSTANT, "ParseErrorNotification"),
     (SCOPE_ADMIN, FREQ_INSTANT, "NewTranslationNotificaton"),

{"golden_diff": "diff --git a/weblate/accounts/data.py b/weblate/accounts/data.py\n--- a/weblate/accounts/data.py\n+++ b/weblate/accounts/data.py\n@@ -4,6 +4,7 @@\n \n from weblate.accounts.notifications import (\n     FREQ_INSTANT,\n+    FREQ_WEEKLY,\n     SCOPE_ADMIN,\n     SCOPE_ALL,\n     SCOPE_WATCHED,\n@@ -14,6 +15,7 @@\n     (SCOPE_WATCHED, FREQ_INSTANT, \"LastAuthorCommentNotificaton\"),\n     (SCOPE_WATCHED, FREQ_INSTANT, \"MentionCommentNotificaton\"),\n     (SCOPE_WATCHED, FREQ_INSTANT, \"NewAnnouncementNotificaton\"),\n+    (SCOPE_WATCHED, FREQ_WEEKLY, \"NewStringNotificaton\"),\n     (SCOPE_ADMIN, FREQ_INSTANT, \"MergeFailureNotification\"),\n     (SCOPE_ADMIN, FREQ_INSTANT, \"ParseErrorNotification\"),\n     (SCOPE_ADMIN, FREQ_INSTANT, \"NewTranslationNotificaton\"),\n", "issue": "No way to set default notification setting for watched projects\n### Describe the issue\n\nThanks for this great project. On the notifications part there is some room for improvements as when you come from transifex, you get a lot of useful notifications which encourage user to finish the translation of a language when stuff changes. Would it be possible to set some defaults for the \"New translation component was created\" and \"New string is available for translation\" settings. As IMO for these settings an instant notification should be sent out. Probably some more would be nice too.\n\n### I already tried\n\n- [X] I've read and searched [the documentation](https://docs.weblate.org/).\n- [X] I've searched for similar issues in this repository.\n\n### Steps to reproduce the behavior\n\n1. Got to /accounts/profile/#notifications__1\r\n2. Check the component and translation notifications\n\n### Expected behavior\n\nSome default settings to adjust, either in the GUI or by configuration variable.\n\n### Screenshots\n\n_No response_\n\n### Exception traceback\n\n_No response_\n\n### How do you run Weblate?\n\nDocker container\n\n### Weblate versions\n\n_No response_\n\n### Weblate deploy checks\n\n_No response_\n\n### Additional context\n\nKind of related to #5155.\n", "before_files": [{"content": "# Copyright \u00a9 Michal \u010ciha\u0159 <michal@weblate.org>\n#\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom weblate.accounts.notifications import (\n    FREQ_INSTANT,\n    SCOPE_ADMIN,\n    SCOPE_ALL,\n    SCOPE_WATCHED,\n)\n\nDEFAULT_NOTIFICATIONS = [\n    (SCOPE_ALL, FREQ_INSTANT, \"MentionCommentNotificaton\"),\n    (SCOPE_WATCHED, FREQ_INSTANT, \"LastAuthorCommentNotificaton\"),\n    (SCOPE_WATCHED, FREQ_INSTANT, \"MentionCommentNotificaton\"),\n    (SCOPE_WATCHED, FREQ_INSTANT, \"NewAnnouncementNotificaton\"),\n    (SCOPE_ADMIN, FREQ_INSTANT, \"MergeFailureNotification\"),\n    (SCOPE_ADMIN, FREQ_INSTANT, \"ParseErrorNotification\"),\n    (SCOPE_ADMIN, FREQ_INSTANT, \"NewTranslationNotificaton\"),\n    (SCOPE_ADMIN, FREQ_INSTANT, \"NewAlertNotificaton\"),\n    (SCOPE_ADMIN, FREQ_INSTANT, \"NewAnnouncementNotificaton\"),\n]\n\n\ndef create_default_notifications(user) -> None:\n    for scope, frequency, notification in DEFAULT_NOTIFICATIONS:\n        user.subscription_set.get_or_create(\n            scope=scope, notification=notification, defaults={\"frequency\": frequency}\n        )\n", "path": "weblate/accounts/data.py"}], "after_files": [{"content": "# Copyright \u00a9 Michal \u010ciha\u0159 <michal@weblate.org>\n#\n# SPDX-License-Identifier: GPL-3.0-or-later\n\nfrom weblate.accounts.notifications import (\n    FREQ_INSTANT,\n    FREQ_WEEKLY,\n    SCOPE_ADMIN,\n    SCOPE_ALL,\n    SCOPE_WATCHED,\n)\n\nDEFAULT_NOTIFICATIONS = [\n    (SCOPE_ALL, FREQ_INSTANT, \"MentionCommentNotificaton\"),\n    (SCOPE_WATCHED, FREQ_INSTANT, \"LastAuthorCommentNotificaton\"),\n    (SCOPE_WATCHED, FREQ_INSTANT, \"MentionCommentNotificaton\"),\n    (SCOPE_WATCHED, FREQ_INSTANT, \"NewAnnouncementNotificaton\"),\n    (SCOPE_WATCHED, FREQ_WEEKLY, \"NewStringNotificaton\"),\n    (SCOPE_ADMIN, FREQ_INSTANT, \"MergeFailureNotification\"),\n    (SCOPE_ADMIN, FREQ_INSTANT, \"ParseErrorNotification\"),\n    (SCOPE_ADMIN, FREQ_INSTANT, \"NewTranslationNotificaton\"),\n    (SCOPE_ADMIN, FREQ_INSTANT, \"NewAlertNotificaton\"),\n    (SCOPE_ADMIN, FREQ_INSTANT, \"NewAnnouncementNotificaton\"),\n]\n\n\ndef create_default_notifications(user) -> None:\n    for scope, frequency, notification in DEFAULT_NOTIFICATIONS:\n        user.subscription_set.get_or_create(\n            scope=scope, notification=notification, defaults={\"frequency\": frequency}\n        )\n", "path": "weblate/accounts/data.py"}]}