Skip to content

A platform for community discussion. Free, open, simple.

DEV: Move discourse-cakeday to core (#35172)

Jarek Radosz3729361c325a
diff --git a/.github/labeler.yml b/.github/labeler.yml
index 761afebfc8d..0745b891272 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -142,6 +142,10 @@ discourse-ai:
- changed-files:
- any-glob-to-any-file: plugins/discourse-ai/**/*
+discourse-cakeday:
+ - changed-files:
+ - any-glob-to-any-file: plugins/discourse-cakeday/**/*
+
footnote:
- changed-files:
- any-glob-to-any-file: plugins/footnote/**/*
diff --git a/.gitignore b/.gitignore
index 950134981d2..c8e4d142b75 100644
--- a/.gitignore
+++ b/.gitignore
@@ -78,6 +78,7 @@
!/plugins/discourse-topic-voting
!/plugins/discourse-templates
!/plugins/discourse-ai
+!/plugins/discourse-cakeday
/plugins/*/auto_generated
/spec/fixtures/plugins/my_plugin/auto_generated
diff --git a/jsconfig.json b/jsconfig.json
index f1ed9db9423..3fbbdef3bfe 100644
--- a/jsconfig.json
+++ b/jsconfig.json
@@ -63,6 +63,10 @@
"./plugins/discourse-assign/assets/javascripts/*",
"./plugins/discourse-assign/test/javascripts/*"
],
+ "discourse/plugins/discourse-cakeday/*": [
+ "./plugins/discourse-cakeday/assets/javascripts/*",
+ "./plugins/discourse-cakeday/test/javascripts/*"
+ ],
"discourse/plugins/discourse-calendar/*": [
"./plugins/discourse-calendar/assets/javascripts/*",
"./plugins/discourse-calendar/test/javascripts/*"
diff --git a/migrations/config/intermediate_db.yml b/migrations/config/intermediate_db.yml
index ecc24dd3ba5..14597aa06d9 100644
--- a/migrations/config/intermediate_db.yml
+++ b/migrations/config/intermediate_db.yml
@@ -543,6 +543,7 @@ plugins:
- "discourse-ai"
- "discourse-apple-auth"
- "discourse-assign"
+ - "discourse-cakeday"
- "discourse-calendar"
- "discourse-chat-integration"
- "discourse-data-explorer"
diff --git a/plugins/discourse-cakeday/README.md b/plugins/discourse-cakeday/README.md
new file mode 100644
index 00000000000..4dc3387a7be
--- /dev/null
+++ b/plugins/discourse-cakeday/README.md
@@ -0,0 +1,14 @@
+# Discourse Cakeday!
+
+Official Plugin Topic & Documentation: https://meta.discourse.org/t/cakeday-celebrating-birthdays-and-anniversaries/38447/
+
+![](example.png)
+![](example2.png)
+
+# Installing
+
+See https://meta.discourse.org/t/install-a-plugin/19157/14
+
+# License
+
+MIT
diff --git a/plugins/discourse-cakeday/app/controllers/discourse_cakeday/anniversaries_controller.rb b/plugins/discourse-cakeday/app/controllers/discourse_cakeday/anniversaries_controller.rb
new file mode 100644
index 00000000000..4ccb99e490a
--- /dev/null
+++ b/plugins/discourse-cakeday/app/controllers/discourse_cakeday/anniversaries_controller.rb
@@ -0,0 +1,33 @@
+# frozen_string_literal: true
+
+module DiscourseCakeday
+ class AnniversariesController < CakedayController
+ before_action :ensure_cakeday_enabled
+
+ def index
+ column_sql = "created_at"
+
+ # The users.created_at column is a "timestamp without timezone"
+ # so we need to convert the "point in time" to the current user's timezone
+ # for proper filtering and display (otherwise you might get off by ones
+ # if you live in ~~the future~~ Fiji or in ~~the past~~ Hawaii)
+ if @timezone.present? && @timezone != "UTC"
+ column_sql += " AT TIME ZONE 'UTC' AT TIME ZONE '#{@timezone}'"
+ end
+
+ users, total, more_params = cakedays_by(column_sql, at_least_one_year_old: true)
+
+ render_json_dump(
+ anniversaries: serialize_data(users, CakedayUserSerializer),
+ total_rows_anniversaries: total,
+ load_more_anniversaries: anniversaries_path(more_params),
+ )
+ end
+
+ private
+
+ def ensure_cakeday_enabled
+ raise Discourse::NotFound if !SiteSetting.cakeday_enabled
+ end
+ end
+end
diff --git a/plugins/discourse-cakeday/app/controllers/discourse_cakeday/birthdays_controller.rb b/plugins/discourse-cakeday/app/controllers/discourse_cakeday/birthdays_controller.rb
new file mode 100644
index 00000000000..3b913ae5810
--- /dev/null
+++ b/plugins/discourse-cakeday/app/controllers/discourse_cakeday/birthdays_controller.rb
@@ -0,0 +1,23 @@
+# frozen_string_literal: true
+
+module DiscourseCakeday
+ class BirthdaysController < CakedayController
+ before_action :ensure_birthday_enabled
+
+ def index
+ users, total, more_params = cakedays_by("date_of_birth")
+
+ render_json_dump(
+ birthdays: serialize_data(users, CakedayUserSerializer),
+ total_rows_birthdays: total,
+ load_more_birthdays: birthdays_path(more_params),
+ )
+ end
+
+ private
+
+ def ensure_birthday_enabled
+ raise Discourse::NotFound if !SiteSetting.cakeday_birthday_enabled
+ end
+ end
+end
diff --git a/plugins/discourse-cakeday/app/controllers/discourse_cakeday/cakeday_controller.rb b/plugins/discourse-cakeday/app/controllers/discourse_cakeday/cakeday_controller.rb
new file mode 100644
index 00000000000..00227fc5e62
--- /dev/null
+++ b/plugins/discourse-cakeday/app/controllers/discourse_cakeday/cakeday_controller.rb
@@ -0,0 +1,93 @@
+# frozen_string_literal: true
+
+module DiscourseCakeday
+ class CakedayController < ::ApplicationController
+ requires_plugin PLUGIN_NAME
+
+ before_action :ensure_logged_in
+ before_action :setup_params
+
+ private
+
+ PAGE_SIZE = 48
+
+ def setup_params
+ @page = params[:page].to_i.clamp(0..)
+ @month = params[:month].to_i.clamp(1..12)
+ @users =
+ User
+ .real
+ .activated
+ .not_staged
+ .not_silenced
+ .not_suspended
+ .joins(:user_option)
+ .where("user_options.hide_profile = ?", false)
+ @timezone = current_user&.user_option&.timezone
+ end
+
+ def cakedays_by(column_sql, at_least_one_year_old: false)
+ more_params = { page: @page + 1, filter: params[:filter] }
+
+ today =
+ begin
+ Time.zone.now.in_time_zone(@timezone)
+ rescue ArgumentError
+ Time.zone.now
+ end.to_date
+
+ if at_least_one_year_old
+ @users = @users.where("EXTRACT(YEAR FROM #{column_sql}) < ?", today.year)
+ end
+
+ # when the current year is not a leap year, we consider February 29th to be March 1st
+ date_sql = <<~SQL
+ TO_CHAR(#{column_sql}, 'MMDD') = :date OR (
+ NOT :leap AND
+ :date = '0301' AND
+ TO_CHAR(#{column_sql}, 'MMDD') = '0229'
+ )
+ SQL
+
+ @users =
+ case params[:filter]
+ when "today"
+ @users.where(date_sql, leap: today.leap?, date: mmdd(today))
+ when "tomorrow"
+ tomorrow = today + 1.day
+ @users.where(date_sql, leap: tomorrow.leap?, date: mmdd(tomorrow))
+ when "upcoming"
+ from = today + 2.days
+ to = from + 1.week
+ @users.where("TO_CHAR(#{column_sql}, 'MMDD') BETWEEN ? AND ?", mmdd(from), mmdd(to))
+ else # month
+ more_params[:month] = @month
+ @users.where("EXTRACT(MONTH FROM #{column_sql}) = ?", @month)
+ end
+
+ total = @users.count
+
+ # when the cakedate is the same, we order based on how the data is displayed
+ tie_breaker =
+ if SiteSetting.prioritize_username_in_ux
+ :username_lower
+ else
+ "COALESCE(NULLIF(LOWER(TRIM(users.name)), ''), users.username_lower) ASC"
+ end
+
+ @users =
+ @users
+ .select(:id, :username, :name, :title, :uploaded_avatar_id, "#{column_sql} cakedate")
+ .order("TO_CHAR(#{column_sql}, 'MMDDYYYY') ASC")
+ .order(tie_breaker)
+ .limit(PAGE_SIZE)
+ .offset(PAGE_SIZE * @page)
+
+ [@users, total, more_params]
+ end
+
+ def mmdd(date)
+ date.strftime("%m%d")
+ end
+ end
+end
diff --git a/plugins/discourse-cakeday/app/jobs/onceoff/fix_invalid_date_of_birth.rb b/plugins/discourse-cakeday/app/jobs/onceoff/fix_invalid_date_of_birth.rb
new file mode 100644
index 00000000000..ecdb9e41a3d
--- /dev/null
+++ b/plugins/discourse-cakeday/app/jobs/onceoff/fix_invalid_date_of_birth.rb
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+module Jobs
+ class FixInvalidDateOfBirth < ::Jobs::Onceoff
+ def execute_onceoff(args)
+ UserCustomField
+ .where(name: "date_of_birth")
+ .where("value != ''")
+ .find_each do |custom_field|
+ begin
+ Date.parse(custom_field.value)
+ rescue ArgumentError
+ custom_field.update!(value: "")
+ end
+ end
+ end
+ end
+end
diff --git a/plugins/discourse-cakeday/app/jobs/onceoff/migrate_date_of_birth_to_users_table.rb b/plugins/discourse-cakeday/app/jobs/onceoff/migrate_date_of_birth_to_users_table.rb
new file mode 100644
index 00000000000..8abf26b071c
--- /dev/null
+++ b/plugins/discourse-cakeday/app/jobs/onceoff/migrate_date_of_birth_to_users_table.rb
@@ -0,0 +1,25 @@
+# frozen_string_literal: true
+
+module Jobs
+ class MigrateDateOfBirthToUsersTable < ::Jobs::Onceoff
+ def execute_onceoff(args)
+ UserCustomField
+ .where(name: "date_of_birth")
+ .find_each do |custom_field|
+ value = custom_field.value
+
+ if value.present?
+ begin
+ date = Date.parse(value)
+ rescue ArgumentError
+ # Just drop migration of custom field
+ end
+
+ custom_field.user.update!(date_of_birth: date)
+ else
+ custom_field.destroy!
+ end
+ end
+ end
+ end
+end
diff --git a/plugins/discourse-cakeday/app/serializers/discourse_cakeday/cakeday_user_serializer.rb b/plugins/discourse-cakeday/app/serializers/discourse_cakeday/cakeday_user_serializer.rb
new file mode 100644
index 00000000000..f1a18e71ff9
--- /dev/null
+++ b/plugins/discourse-cakeday/app/serializers/discourse_cakeday/cakeday_user_serializer.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+module DiscourseCakeday
+ class CakedayUserSerializer < BasicUserSerializer
+ attributes :title, :cakedate
+ end
+end
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/adapters/anniversary.js b/plugins/discourse-cakeday/assets/javascripts/discourse/adapters/anniversary.js
new file mode 100644
index 00000000000..121478894c3
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/adapters/anniversary.js
@@ -0,0 +1,3 @@
+import CakedayAdapter from "discourse/plugins/discourse-cakeday/discourse/adapters/cakeday";
+
+export default CakedayAdapter;
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/adapters/birthday.js b/plugins/discourse-cakeday/assets/javascripts/discourse/adapters/birthday.js
new file mode 100644
index 00000000000..121478894c3
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/adapters/birthday.js
@@ -0,0 +1,3 @@
+import CakedayAdapter from "discourse/plugins/discourse-cakeday/discourse/adapters/cakeday";
+
+export default CakedayAdapter;
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/adapters/cakeday.js b/plugins/discourse-cakeday/assets/javascripts/discourse/adapters/cakeday.js
new file mode 100644
index 00000000000..5e801a53cb6
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/adapters/cakeday.js
@@ -0,0 +1,7 @@
+import RESTAdapter from "discourse/adapters/rest";
+
+export default class Cakeday extends RESTAdapter {
+ basePath() {
+ return "/cakeday/";
+ }
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/components/emoji-images.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/components/emoji-images.gjs
new file mode 100644
index 00000000000..ee3ff8197b8
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/components/emoji-images.gjs
@@ -0,0 +1,35 @@
+/* eslint-disable ember/no-classic-components */
+import Component from "@ember/component";
+import { htmlSafe } from "@ember/template";
+import { classNames } from "@ember-decorators/component";
+import icon from "discourse/helpers/d-icon";
+import computed from "discourse/lib/decorators";
+import { emojiUnescape } from "discourse/lib/text";
+import { i18n } from "discourse-i18n";
+
+@classNames("emoji-images")
+export default class EmojiImages extends Component {
+ @computed("list")
+ emojiHTML(list) {
+ return list
+ .split("|")
+ .map((et) => emojiUnescape(`:${et}:`, { skipTitle: true }));
+ }
+
+ @computed("title")
+ titleText(title) {
+ return i18n(title);
+ }
+
+ <template>
+ {{#if this.siteSettings.enable_emoji}}
+ <div title={{this.titleText}}>
+ {{#each this.emojiHTML as |html|}}
+ {{htmlSafe html}}
+ {{/each}}
+ </div>
+ {{else}}
+ {{icon "cake-candles" title=this.titleText}}
+ {{/if}}
+ </template>
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/components/user-info-list.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/components/user-info-list.gjs
new file mode 100644
index 00000000000..ba8e6041957
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/components/user-info-list.gjs
@@ -0,0 +1,28 @@
+import UserInfo from "discourse/components/user-info";
+import { i18n } from "discourse-i18n";
+
+function cakedayDate(val, { isBirthday }) {
+ const date = moment(val);
+
+ if (isBirthday) {
+ return date.format(i18n("dates.full_no_year_no_time"));
+ } else {
+ return date.format(i18n("dates.full_with_year_no_time"));
+ }
+}
+
+const UserInfoList = <template>
+ <ul class="user-info-list">
+ {{#each @users as |user|}}
+ <li class="user-info-item">
+ <UserInfo @user={{user}}>
+ <div>{{cakedayDate user.cakedate isBirthday=@isBirthday}}</div>
+ </UserInfo>
+ </li>
+ {{else}}
+ <div class="user-info-empty-message"><p>{{yield}}</p></div>
+ {{/each}}
+ </ul>
+</template>;
+
+export default UserInfoList;
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-card-post-names/user-card-cakeday.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-card-post-names/user-card-cakeday.gjs
new file mode 100644
index 00000000000..e825e3ae705
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-card-post-names/user-card-cakeday.gjs
@@ -0,0 +1,42 @@
+/* eslint-disable ember/no-classic-components */
+import Component from "@ember/component";
+import { classNames, tagName } from "@ember-decorators/component";
+import {
+ birthday,
+ birthdayTitle,
+ cakeday,
+ cakedayTitle,
+} from "discourse/plugins/discourse-cakeday/discourse/lib/cakeday";
+import EmojiImages from "../../components/emoji-images";
+
+@tagName("div")
+@classNames("user-card-post-names-outlet", "user-card-cakeday")
+export default class UserCardCakeday extends Component {
+ init() {
+ super.init(...arguments);
+ const { user } = this;
+ this.set("isCakeday", cakeday(user.cakedate));
+ this.set("isBirthday", birthday(user.birthdate));
+ this.set("cakedayTitle", cakedayTitle(user, this.currentUser));
+ this.set("birthdayTitle", birthdayTitle(user, this.currentUser));
+ }
+
+ <template>
+ {{#if this.siteSettings.cakeday_birthday_enabled}}
+ {{#if this.isBirthday}}
+ <EmojiImages
+ @list={{this.siteSettings.cakeday_birthday_emoji}}
+ @title={{this.birthdayTitle}}
+ />
+ {{/if}}
+ {{/if}}
+ {{#if this.siteSettings.cakeday_enabled}}
+ {{#if this.isCakeday}}
+ <EmojiImages
+ @list={{this.siteSettings.cakeday_emoji}}
+ @title={{this.cakedayTitle}}
+ />
+ {{/if}}
+ {{/if}}
+ </template>
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-custom-preferences/user-date-of-birth-input.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-custom-preferences/user-date-of-birth-input.gjs
new file mode 100644
index 00000000000..6ff871df137
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-custom-preferences/user-date-of-birth-input.gjs
@@ -0,0 +1,76 @@
+/* eslint-disable ember/no-classic-components */
+import Component from "@ember/component";
+import { fn, hash } from "@ember/helper";
+import { classNames, tagName } from "@ember-decorators/component";
+import { i18n } from "discourse-i18n";
+import ComboBox from "select-kit/components/combo-box";
+
+@tagName("div")
+@classNames("user-custom-preferences-outlet", "user-date-of-birth-input")
+export default class UserDateOfBirthInput extends Component {
+ init() {
+ super.init(...arguments);
+ const { model } = this;
+ const { birthdate } = model;
+ const months = moment.months().map((month, index) => {
+ return {
+ name: month,
+ value: index + 1,
+ };
+ });
+ const days = [...Array(31).keys()].map((d) => (d + 1).toString());
+ const month = birthdate
+ ? moment(birthdate, "YYYY-MM-DD").month() + 1
+ : null;
+ const day = birthdate
+ ? moment(birthdate, "YYYY-MM-DD").date().toString()
+ : null;
+ this.setProperties({
+ months,
+ days,
+ month,
+ day,
+ });
+ const updateBirthdate = () => {
+ let date = "";
+ if (this.month && this.day) {
+ date = `1904-${this.month}-${this.day}`;
+ }
+
+ // The property that is being serialized when sending the update
+ // request to the server is called `date_of_birth`
+ model.set("date_of_birth", date);
+ };
+ this.addObserver("month", updateBirthdate);
+ this.addObserver("day", updateBirthdate);
+ }
+
+ <template>
+ {{#if this.siteSettings.cakeday_birthday_enabled}}
+ <div class="control-group">
+ <label class="control-label">{{i18n "user.date_of_birth.label"}}</label>
+ <div class="controls">
+ <ComboBox
+ @content={{this.months}}
+ @value={{this.month}}
+ @valueAttribute="value"
+ @valueProperty="value"
+ @none="cakeday.none"
+ @options={{hash clearable=true autoInsertNoneItem=false}}
+ @onChange={{fn (mut this.month)}}
+ />
+
+ <ComboBox
+ @content={{this.days}}
+ @value={{this.day}}
+ @valueProperty={{null}}
+ @nameProperty={{null}}
+ @none="cakeday.none"
+ @options={{hash clearable=true autoInsertNoneItem=false}}
+ @onChange={{fn (mut this.day)}}
+ />
+ </div>
+ </div>
+ {{/if}}
+ </template>
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-post-names/user-cakeday.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-post-names/user-cakeday.gjs
new file mode 100644
index 00000000000..7c9368e494f
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/connectors/user-post-names/user-cakeday.gjs
@@ -0,0 +1,51 @@
+import Component from "@glimmer/component";
+import { service } from "@ember/service";
+import {
+ birthday,
+ birthdayTitle,
+ cakeday,
+ cakedayTitle,
+} from "discourse/plugins/discourse-cakeday/discourse/lib/cakeday";
+import EmojiImages from "../../components/emoji-images";
+
+export default class UserCakeday extends Component {
+ @service currentUser;
+ @service siteSettings;
+
+ get isCakeday() {
+ return cakeday(this.args.model.cakedate);
+ }
+
+ get isBirthday() {
+ return birthday(this.args.model.birthdate);
+ }
+
+ get cakedayTitle() {
+ return cakedayTitle(this.args.model, this.currentUser);
+ }
+
+ get birthdayTitle() {
+ return birthdayTitle(this.args.model, this.currentUser);
+ }
+
+ <template>
+ <div class="user-post-names-outlet user-cakeday">
+ {{#if this.siteSettings.cakeday_birthday_enabled}}
+ {{#if this.isBirthday}}
+ <EmojiImages
+ @list={{this.siteSettings.cakeday_birthday_emoji}}
+ @title={{this.birthdayTitle}}
+ />
+ {{/if}}
+ {{/if}}
+ {{#if this.siteSettings.cakeday_enabled}}
+ {{#if this.isCakeday}}
+ <EmojiImages
+ @list={{this.siteSettings.cakeday_emoji}}
+ @title={{this.cakedayTitle}}
+ />
+ {{/if}}
+ {{/if}}
+ </div>
+ </template>
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-anniversaries-all.js b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-anniversaries-all.js
new file mode 100644
index 00000000000..0f5e7196337
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-anniversaries-all.js
@@ -0,0 +1,20 @@
+import Controller from "@ember/controller";
+import { action } from "@ember/object";
+import computed from "discourse/lib/decorators";
+
+export default class CakedayAnniversariesAllController extends Controller {
+ queryParams = ["month"];
+ month = moment().month() + 1;
+
+ @computed
+ months() {
+ return moment.months().map((month, index) => {
+ return { name: month, value: index + 1 };
+ });
+ }
+
+ @action
+ loadMore() {
+ this.get("model").loadMore();
+ }
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-anniversaries-today.js b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-anniversaries-today.js
new file mode 100644
index 00000000000..649b14d3164
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-anniversaries-today.js
@@ -0,0 +1,18 @@
+import Controller from "@ember/controller";
+import { action } from "@ember/object";
+import computed from "discourse/lib/decorators";
+import { i18n } from "discourse-i18n";
+
+export default class CakedayAnniversariesTodayController extends Controller {
+ @computed
+ title() {
+ return i18n("anniversaries.today.title", {
+ date: moment().format(i18n("dates.full_no_year_no_time")),
+ });
+ }
+
+ @action
+ loadMore() {
+ this.get("model").loadMore();
+ }
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-anniversaries-tomorrow.js b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-anniversaries-tomorrow.js
new file mode 100644
index 00000000000..7643a6e46e2
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-anniversaries-tomorrow.js
@@ -0,0 +1,18 @@
+import Controller from "@ember/controller";
+import { action } from "@ember/object";
+import computed from "discourse/lib/decorators";
+import { i18n } from "discourse-i18n";
+
+export default class CakedayAnniversariesTomorrowController extends Controller {
+ @computed
+ title() {
+ return i18n("anniversaries.today.title", {
+ date: moment().add(1, "day").format(i18n("dates.full_no_year_no_time")),
+ });
+ }
+
+ @action
+ loadMore() {
+ this.get("model").loadMore();
+ }
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-anniversaries-upcoming.js b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-anniversaries-upcoming.js
new file mode 100644
index 00000000000..2b21e56019d
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-anniversaries-upcoming.js
@@ -0,0 +1,21 @@
+import Controller from "@ember/controller";
+import { action } from "@ember/object";
+import computed from "discourse/lib/decorators";
+import { i18n } from "discourse-i18n";
+
+export default class CakedayAnniversariesUpcomingController extends Controller {
+ @computed
+ title() {
+ const dateFormat = i18n("dates.full_no_year_no_time");
+
+ return i18n("anniversaries.upcoming.title", {
+ start_date: moment().add(2, "days").format(dateFormat),
+ end_date: moment().add(2, "days").add(1, "week").format(dateFormat),
+ });
+ }
+
+ @action
+ loadMore() {
+ this.get("model").loadMore();
+ }
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-birthdays-all.js b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-birthdays-all.js
new file mode 100644
index 00000000000..a4e041183bf
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-birthdays-all.js
@@ -0,0 +1,20 @@
+import Controller from "@ember/controller";
+import { action } from "@ember/object";
+import computed from "discourse/lib/decorators";
+
+export default class CakedayBirthdaysAllController extends Controller {
+ queryParams = ["month"];
+ month = moment().month() + 1;
+
+ @computed
+ months() {
+ return moment.months().map((month, index) => {
+ return { name: month, value: index + 1 };
+ });
+ }
+
+ @action
+ loadMore() {
+ this.get("model").loadMore();
+ }
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-birthdays-today.js b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-birthdays-today.js
new file mode 100644
index 00000000000..635568cca9b
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-birthdays-today.js
@@ -0,0 +1,18 @@
+import Controller from "@ember/controller";
+import { action } from "@ember/object";
+import computed from "discourse/lib/decorators";
+import { i18n } from "discourse-i18n";
+
+export default class CakedayBirthdaysTodayController extends Controller {
+ @computed
+ title() {
+ return i18n("birthdays.today.title", {
+ date: moment().format(i18n("dates.full_no_year_no_time")),
+ });
+ }
+
+ @action
+ loadMore() {
+ this.get("model").loadMore();
+ }
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-birthdays-tomorrow.js b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-birthdays-tomorrow.js
new file mode 100644
index 00000000000..3dc7f1f4860
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-birthdays-tomorrow.js
@@ -0,0 +1,18 @@
+import Controller from "@ember/controller";
+import { action } from "@ember/object";
+import computed from "discourse/lib/decorators";
+import { i18n } from "discourse-i18n";
+
+export default class CakedayBirthdaysTomorrowController extends Controller {
+ @computed
+ title() {
+ return i18n("birthdays.today.title", {
+ date: moment().add(1, "day").format(i18n("dates.full_no_year_no_time")),
+ });
+ }
+
+ @action
+ loadMore() {
+ this.get("model").loadMore();
+ }
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-birthdays-upcoming.js b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-birthdays-upcoming.js
new file mode 100644
index 00000000000..73fa3611e94
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday-birthdays-upcoming.js
@@ -0,0 +1,21 @@
+import Controller from "@ember/controller";
+import { action } from "@ember/object";
+import computed from "discourse/lib/decorators";
+import { i18n } from "discourse-i18n";
+
+export default class CakedayBirthdaysUpcomingController extends Controller {
+ @computed
+ title() {
+ const dateFormat = i18n("dates.full_no_year_no_time");
+
+ return i18n("birthdays.upcoming.title", {
+ start_date: moment().add(2, "days").format(dateFormat),
+ end_date: moment().add(2, "days").add(1, "week").format(dateFormat),
+ });
+ }
+
+ @action
+ loadMore() {
+ this.get("model").loadMore();
+ }
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday.js b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday.js
new file mode 100644
index 00000000000..0369561b70c
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/controllers/cakeday.js
@@ -0,0 +1,7 @@
+import Controller from "@ember/controller";
+import { alias } from "@ember/object/computed";
+
+export default class CakedayController extends Controller {
+ @alias("siteSettings.cakeday_enabled") cakedayEnabled;
+ @alias("siteSettings.cakeday_birthday_enabled") birthdayEnabled;
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/discourse-cakeday-route-map.js b/plugins/discourse-cakeday/assets/javascripts/discourse/discourse-cakeday-route-map.js
new file mode 100644
index 00000000000..b2229d5df32
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/discourse-cakeday-route-map.js
@@ -0,0 +1,17 @@
+export default function () {
+ this.route("cakeday", { resetNamespace: true }, function () {
+ this.route("birthdays", function () {
+ this.route("today");
+ this.route("tomorrow");
+ this.route("upcoming");
+ this.route("all");
+ });
+
+ this.route("anniversaries", function () {
+ this.route("today");
+ this.route("tomorrow");
+ this.route("upcoming");
+ this.route("all");
+ });
+ });
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/initializers/cakeday.js b/plugins/discourse-cakeday/assets/javascripts/discourse/initializers/cakeday.js
new file mode 100644
index 00000000000..494c497d585
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/initializers/cakeday.js
@@ -0,0 +1,105 @@
+import { withPluginApi } from "discourse/lib/plugin-api";
+import { i18n } from "discourse-i18n";
+import {
+ birthday,
+ cakeday,
+} from "discourse/plugins/discourse-cakeday/discourse/lib/cakeday";
+
+function initializeCakeday(api) {
+ const currentUser = api.getCurrentUser();
+ if (!currentUser) {
+ return;
+ }
+
+ const store = api.container.lookup("service:store");
+ store.addPluralization("anniversary", "anniversaries");
+
+ const siteSettings = api.container.lookup("service:site-settings");
+ const emojiEnabled = siteSettings.enable_emoji;
+ const cakedayEnabled = siteSettings.cakeday_enabled;
+ const birthdayEnabled = siteSettings.cakeday_birthday_enabled;
+
+ if (cakedayEnabled) {
+ api.addTrackedPostProperties("user_cakedate");
+
+ api.addPosterIcon((_, { user_cakedate, user_id }) => {
+ if (cakeday(user_cakedate)) {
+ let result = {};
+
+ if (emojiEnabled) {
+ result.emoji = siteSettings.cakeday_emoji;
+ } else {
+ result.icon = "cake-candles";
+ }
+
+ if (user_id === currentUser?.id) {
+ result.title = i18n("user.anniversary.user_title");
+ } else {
+ result.title = i18n("user.anniversary.title");
+ }
+
+ return result;
+ }
+ });
+ }
+
+ if (birthdayEnabled) {
+ api.addTrackedPostProperties("user_birthdate");
+
+ api.addPosterIcon((_, { user_birthdate, user_id }) => {
+ if (birthday(user_birthdate)) {
+ let result = {};
+
+ if (emojiEnabled) {
+ result.emoji = siteSettings.cakeday_birthday_emoji;
+ } else {
+ result.icon = "cake-candles";
+ }
+
+ if (user_id === currentUser?.id) {
+ result.title = i18n("user.date_of_birth.user_title");
+ } else {
+ result.title = i18n("user.date_of_birth.title");
+ }
+
+ return result;
+ }
+ });
+ }
+
+ if (cakedayEnabled || birthdayEnabled) {
+ if (cakedayEnabled) {
+ api.addCommunitySectionLink(
+ {
+ name: "anniversaries",
+ route: "cakeday.anniversaries.today",
+ title: i18n("anniversaries.title"),
+ text: i18n("anniversaries.title"),
+ icon: "cake-candles",
+ },
+ true
+ );
+ }
+
+ if (birthdayEnabled) {
+ api.addCommunitySectionLink(
+ {
+ name: "birthdays",
+ route: "cakeday.birthdays.today",
+ title: i18n("birthdays.title"),
+ text: i18n("birthdays.title"),
+ icon: "cake-candles",
+ },
+ true
+ );
+ }
+ }
+}
+
+export default {
+ name: "cakeday",
+
+ initialize() {
+ withPluginApi((api) => initializeCakeday(api));
+ },
+};
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/lib/cakeday.js b/plugins/discourse-cakeday/assets/javascripts/discourse/lib/cakeday.js
new file mode 100644
index 00000000000..3d1cdd1cce0
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/lib/cakeday.js
@@ -0,0 +1,38 @@
+import { isEmpty } from "@ember/utils";
+
+export function cakeday(date) {
+ return !isEmpty(date) && isSameDay(date, { anniversary: true });
+}
+
+export function birthday(date) {
+ return !isEmpty(date) && isSameDay(date);
+}
+
+export function cakedayTitle(user, currentUser) {
+ if (user.id === currentUser?.id) {
+ return "user.anniversary.user_title";
+ } else {
+ return "user.anniversary.title";
+ }
+}
+
+export function birthdayTitle(user, currentUser) {
+ if (user.id === currentUser?.id) {
+ return "user.date_of_birth.user_title";
+ } else {
+ return "user.date_of_birth.title";
+ }
+}
+
+function isSameDay(dateString, opts) {
+ const now = moment();
+ const date = moment(dateString);
+
+ if (opts?.anniversary) {
+ if (now.format("YYYY") <= date.format("YYYY")) {
+ return false;
+ }
+ }
+
+ return now.format("MMDD") === date.format("MMDD");
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/routes/build-cakeday-route.js b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/build-cakeday-route.js
new file mode 100644
index 00000000000..1f8126ec0da
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/build-cakeday-route.js
@@ -0,0 +1,13 @@
+import DiscourseRoute from "discourse/routes/discourse";
+
+export default (storeName, filter) => {
+ return class BuildCakedayRoute extends DiscourseRoute {
+ model(params) {
+ if (filter) {
+ params.filter = filter;
+ }
+
+ return this.store.find(storeName, params);
+ }
+ };
+};
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries-all.js b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries-all.js
new file mode 100644
index 00000000000..1ddf1befbe7
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries-all.js
@@ -0,0 +1,9 @@
+import buildCakedayRoute from "discourse/plugins/discourse-cakeday/discourse/routes/build-cakeday-route";
+
+export default buildCakedayRoute("anniversary").extend({
+ queryParams: {
+ month: { refreshModel: true },
+ },
+
+ refreshQueryWithoutTransition: true,
+});
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries-index.js b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries-index.js
new file mode 100644
index 00000000000..063be383029
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries-index.js
@@ -0,0 +1,10 @@
+import { service } from "@ember/service";
+import DiscourseRoute from "discourse/routes/discourse";
+
+export default class CakedayAnniversariesIndex extends DiscourseRoute {
+ @service router;
+
+ beforeModel() {
+ this.router.replaceWith("cakeday.anniversaries.today");
+ }
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries-today.js b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries-today.js
new file mode 100644
index 00000000000..6a6bbba8b98
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries-today.js
@@ -0,0 +1,3 @@
+import buildCakedayRoute from "discourse/plugins/discourse-cakeday/discourse/routes/build-cakeday-route";
+
+export default buildCakedayRoute("anniversary", "today");
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries-tomorrow.js b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries-tomorrow.js
new file mode 100644
index 00000000000..6d45b285473
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries-tomorrow.js
@@ -0,0 +1,3 @@
+import buildCakedayRoute from "discourse/plugins/discourse-cakeday/discourse/routes/build-cakeday-route";
+
+export default buildCakedayRoute("anniversary", "tomorrow");
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries-upcoming.js b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries-upcoming.js
new file mode 100644
index 00000000000..27a78c378ee
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries-upcoming.js
@@ -0,0 +1,3 @@
+import buildCakedayRoute from "discourse/plugins/discourse-cakeday/discourse/routes/build-cakeday-route";
+
+export default buildCakedayRoute("anniversary", "upcoming");
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries.js b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries.js
new file mode 100644
index 00000000000..2843f10039f
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-anniversaries.js
@@ -0,0 +1,20 @@
+import { service } from "@ember/service";
+import DiscourseRoute from "discourse/routes/discourse";
+import { i18n } from "discourse-i18n";
+
+export default class CakedayAnniversaries extends DiscourseRoute {
+ @service router;
+
+ beforeModel() {
+ if (!this.siteSettings.cakeday_enabled) {
+ this.router.transitionTo(
+ "unknown",
+ window.location.pathname.replace(/^\//, "")
+ );
+ }
+ }
+
+ titleToken() {
+ return i18n("anniversaries.title");
+ }
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays-all.js b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays-all.js
new file mode 100644
index 00000000000..483770c8c2e
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays-all.js
@@ -0,0 +1,9 @@
+import buildCakedayRoute from "discourse/plugins/discourse-cakeday/discourse/routes/build-cakeday-route";
+
+export default buildCakedayRoute("birthday").extend({
+ queryParams: {
+ month: { refreshModel: true },
+ },
+
+ refreshQueryWithoutTransition: true,
+});
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays-index.js b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays-index.js
new file mode 100644
index 00000000000..28843315da6
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays-index.js
@@ -0,0 +1,10 @@
+import { service } from "@ember/service";
+import DiscourseRoute from "discourse/routes/discourse";
+
+export default class CakedayBirthdaysIndex extends DiscourseRoute {
+ @service router;
+
+ beforeModel() {
+ this.router.replaceWith("cakeday.birthdays.today");
+ }
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays-today.js b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays-today.js
new file mode 100644
index 00000000000..e8b75102099
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays-today.js
@@ -0,0 +1,3 @@
+import buildCakedayRoute from "discourse/plugins/discourse-cakeday/discourse/routes/build-cakeday-route";
+
+export default buildCakedayRoute("birthday", "today");
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays-tomorrow.js b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays-tomorrow.js
new file mode 100644
index 00000000000..56e36dc92bd
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays-tomorrow.js
@@ -0,0 +1,3 @@
+import buildCakedayRoute from "discourse/plugins/discourse-cakeday/discourse/routes/build-cakeday-route";
+
+export default buildCakedayRoute("birthday", "tomorrow");
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays-upcoming.js b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays-upcoming.js
new file mode 100644
index 00000000000..4d65c81abe7
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays-upcoming.js
@@ -0,0 +1,3 @@
+import buildCakedayRoute from "discourse/plugins/discourse-cakeday/discourse/routes/build-cakeday-route";
+
+export default buildCakedayRoute("birthday", "upcoming");
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays.js b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays.js
new file mode 100644
index 00000000000..68d98f41663
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/routes/cakeday-birthdays.js
@@ -0,0 +1,20 @@
+import { service } from "@ember/service";
+import DiscourseRoute from "discourse/routes/discourse";
+import { i18n } from "discourse-i18n";
+
+export default class CakedayBirthdays extends DiscourseRoute {
+ @service router;
+
+ beforeModel() {
+ if (!this.siteSettings.cakeday_birthday_enabled) {
+ this.router.transitionTo(
+ "unknown",
+ window.location.pathname.replace(/^\//, "")
+ );
+ }
+ }
+
+ titleToken() {
+ return i18n("birthdays.title");
+ }
+}
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday.gjs
new file mode 100644
index 00000000000..060137ab690
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday.gjs
@@ -0,0 +1,29 @@
+import { LinkTo } from "@ember/routing";
+import RouteTemplate from "ember-route-template";
+import { i18n } from "discourse-i18n";
+
+export default RouteTemplate(
+ <template>
+ <div class="container cakeday">
+ <ul class="nav-pills">
+ {{#if @controller.cakedayEnabled}}
+ <li class="nav-item-anniversaries">
+ <LinkTo @route="cakeday.anniversaries">
+ {{i18n "anniversaries.title"}}
+ </LinkTo>
+ </li>
+ {{/if}}
+
+ {{#if @controller.birthdayEnabled}}
+ <li class="nav-item-birthdays">
+ <LinkTo @route="cakeday.birthdays">
+ {{i18n "birthdays.title"}}
+ </LinkTo>
+ </li>
+ {{/if}}
+ </ul>
+
+ {{outlet}}
+ </div>
+ </template>
+);
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/anniversaries.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/anniversaries.gjs
new file mode 100644
index 00000000000..b6c0dae93a4
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/anniversaries.gjs
@@ -0,0 +1,37 @@
+import { LinkTo } from "@ember/routing";
+import RouteTemplate from "ember-route-template";
+import { i18n } from "discourse-i18n";
+
+export default RouteTemplate(
+ <template>
+ <div class="anniversaries">
+ <ul class="nav-pills">
+ <li>
+ <LinkTo @route="cakeday.anniversaries.today">
+ {{i18n "cakeday.today"}}
+ </LinkTo>
+ </li>
+
+ <li>
+ <LinkTo @route="cakeday.anniversaries.tomorrow">
+ {{i18n "cakeday.tomorrow"}}
+ </LinkTo>
+ </li>
+
+ <li>
+ <LinkTo @route="cakeday.anniversaries.upcoming">
+ {{i18n "cakeday.upcoming"}}
+ </LinkTo>
+ </li>
+
+ <li>
+ <LinkTo @route="cakeday.anniversaries.all">
+ {{i18n "cakeday.all"}}
+ </LinkTo>
+ </li>
+ </ul>
+
+ {{outlet}}
+ </div>
+ </template>
+);
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/anniversaries/all.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/anniversaries/all.gjs
new file mode 100644
index 00000000000..fcbd8ffc7c2
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/anniversaries/all.gjs
@@ -0,0 +1,30 @@
+import RouteTemplate from "ember-route-template";
+import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
+import LoadMore from "discourse/components/load-more";
+import { i18n } from "discourse-i18n";
+import ComboBox from "select-kit/components/combo-box";
+import UserInfoList from "../../../components/user-info-list";
+
+export default RouteTemplate(
+ <template>
+ <LoadMore @selector=".user-info" @action={{@controller.loadMore}}>
+ <div class="cakeday-months">
+ <h2 class="cakeday-header">{{i18n "anniversaries.month.title"}}</h2>
+ <ComboBox
+ @content={{@controller.months}}
+ @value={{@controller.month}}
+ @valueAttribute="value"
+ @none="cakeday.none"
+ />
+ </div>
+
+ <ConditionalLoadingSpinner @condition={{@controller.model.loading}}>
+ <UserInfoList @users={{@controller.model}}>
+ {{i18n "anniversaries.month.empty"}}
+ </UserInfoList>
+ </ConditionalLoadingSpinner>
+
+ <ConditionalLoadingSpinner @condition={{@controller.model.loadingMore}} />
+ </LoadMore>
+ </template>
+);
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/anniversaries/today.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/anniversaries/today.gjs
new file mode 100644
index 00000000000..3b730088d52
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/anniversaries/today.gjs
@@ -0,0 +1,21 @@
+import RouteTemplate from "ember-route-template";
+import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
+import LoadMore from "discourse/components/load-more";
+import { i18n } from "discourse-i18n";
+import UserInfoList from "../../../components/user-info-list";
+
+export default RouteTemplate(
+ <template>
+ <h2 class="cakeday-header">{{@controller.title}}</h2>
+
+ <LoadMore @selector=".user-info" @action={{@controller.loadMore}}>
+ <ConditionalLoadingSpinner @condition={{@controller.model.loading}}>
+ <UserInfoList @users={{@controller.model}}>
+ {{i18n "anniversaries.today.empty"}}
+ </UserInfoList>
+ </ConditionalLoadingSpinner>
+
+ <ConditionalLoadingSpinner @condition={{@controller.model.loadingMore}} />
+ </LoadMore>
+ </template>
+);
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/anniversaries/tomorrow.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/anniversaries/tomorrow.gjs
new file mode 100644
index 00000000000..e46fbb51a26
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/anniversaries/tomorrow.gjs
@@ -0,0 +1,21 @@
+import RouteTemplate from "ember-route-template";
+import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
+import LoadMore from "discourse/components/load-more";
+import { i18n } from "discourse-i18n";
+import UserInfoList from "../../../components/user-info-list";
+
+export default RouteTemplate(
+ <template>
+ <h2 class="cakeday-header">{{@controller.title}}</h2>
+
+ <LoadMore @selector=".user-info" @action={{@controller.loadMore}}>
+ <ConditionalLoadingSpinner @condition={{@controller.model.loading}}>
+ <UserInfoList @users={{@controller.model}}>
+ {{i18n "anniversaries.tomorrow.empty"}}
+ </UserInfoList>
+ </ConditionalLoadingSpinner>
+
+ <ConditionalLoadingSpinner @condition={{@controller.model.loadingMore}} />
+ </LoadMore>
+ </template>
+);
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/anniversaries/upcoming.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/anniversaries/upcoming.gjs
new file mode 100644
index 00000000000..daba851e5b3
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/anniversaries/upcoming.gjs
@@ -0,0 +1,21 @@
+import RouteTemplate from "ember-route-template";
+import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
+import LoadMore from "discourse/components/load-more";
+import { i18n } from "discourse-i18n";
+import UserInfoList from "../../../components/user-info-list";
+
+export default RouteTemplate(
+ <template>
+ <h2 class="cakeday-header">{{@controller.title}}</h2>
+
+ <LoadMore @selector=".user-info" @action={{@controller.loadMore}}>
+ <ConditionalLoadingSpinner @condition={{@controller.model.loading}}>
+ <UserInfoList @users={{@controller.model}}>
+ {{i18n "anniversaries.upcoming.empty"}}
+ </UserInfoList>
+ </ConditionalLoadingSpinner>
+
+ <ConditionalLoadingSpinner @condition={{@controller.model.loadingMore}} />
+ </LoadMore>
+ </template>
+);
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/birthdays.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/birthdays.gjs
new file mode 100644
index 00000000000..bd6c7e6c5a7
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/birthdays.gjs
@@ -0,0 +1,37 @@
+import { LinkTo } from "@ember/routing";
+import RouteTemplate from "ember-route-template";
+import { i18n } from "discourse-i18n";
+
+export default RouteTemplate(
+ <template>
+ <div class="birthdays">
+ <ul class="nav-pills">
+ <li>
+ <LinkTo @route="cakeday.birthdays.today">
+ {{i18n "cakeday.today"}}
+ </LinkTo>
+ </li>
+
+ <li>
+ <LinkTo @route="cakeday.birthdays.tomorrow">
+ {{i18n "cakeday.tomorrow"}}
+ </LinkTo>
+ </li>
+
+ <li>
+ <LinkTo @route="cakeday.birthdays.upcoming">
+ {{i18n "cakeday.upcoming"}}
+ </LinkTo>
+ </li>
+
+ <li>
+ <LinkTo @route="cakeday.birthdays.all">
+ {{i18n "cakeday.all"}}
+ </LinkTo>
+ </li>
+ </ul>
+
+ {{outlet}}
+ </div>
+ </template>
+);
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/birthdays/all.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/birthdays/all.gjs
new file mode 100644
index 00000000000..7b886e6f63d
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/birthdays/all.gjs
@@ -0,0 +1,30 @@
+import RouteTemplate from "ember-route-template";
+import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
+import LoadMore from "discourse/components/load-more";
+import { i18n } from "discourse-i18n";
+import ComboBox from "select-kit/components/combo-box";
+import UserInfoList from "../../../components/user-info-list";
+
+export default RouteTemplate(
+ <template>
+ <LoadMore @selector=".user-info" @action={{@controller.loadMore}}>
+ <div class="cakeday-months">
+ <h2 class="cakeday-header">{{i18n "birthdays.month.title"}}</h2>
+ <ComboBox
+ @content={{@controller.months}}
+ @value={{@controller.month}}
+ @valueAttribute="value"
+ @none="cakeday.none"
+ />
+ </div>
+
+ <ConditionalLoadingSpinner @condition={{@controller.model.loading}}>
+ <UserInfoList @users={{@controller.model}} @isBirthday={{true}}>
+ {{i18n "birthdays.month.empty"}}
+ </UserInfoList>
+ </ConditionalLoadingSpinner>
+
+ <ConditionalLoadingSpinner @condition={{@controller.model.loadingMore}} />
+ </LoadMore>
+ </template>
+);
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/birthdays/today.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/birthdays/today.gjs
new file mode 100644
index 00000000000..5d4ea6963be
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/birthdays/today.gjs
@@ -0,0 +1,21 @@
+import RouteTemplate from "ember-route-template";
+import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
+import LoadMore from "discourse/components/load-more";
+import { i18n } from "discourse-i18n";
+import UserInfoList from "../../../components/user-info-list";
+
+export default RouteTemplate(
+ <template>
+ <h2 class="cakeday-header">{{@controller.title}}</h2>
+
+ <LoadMore @selector=".user-info" @action={{@controller.loadMore}}>
+ <ConditionalLoadingSpinner @condition={{@controller.model.loading}}>
+ <UserInfoList @users={{@controller.model}} @isBirthday={{true}}>
+ {{i18n "birthdays.today.empty"}}
+ </UserInfoList>
+ </ConditionalLoadingSpinner>
+
+ <ConditionalLoadingSpinner @condition={{@controller.model.loadingMore}} />
+ </LoadMore>
+ </template>
+);
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/birthdays/tomorrow.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/birthdays/tomorrow.gjs
new file mode 100644
index 00000000000..2978f6dcb83
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/birthdays/tomorrow.gjs
@@ -0,0 +1,21 @@
+import RouteTemplate from "ember-route-template";
+import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
+import LoadMore from "discourse/components/load-more";
+import { i18n } from "discourse-i18n";
+import UserInfoList from "../../../components/user-info-list";
+
+export default RouteTemplate(
+ <template>
+ <h2 class="cakeday-header">{{@controller.title}}</h2>
+
+ <LoadMore @selector=".user-info" @action={{@controller.loadMore}}>
+ <ConditionalLoadingSpinner @condition={{@controller.model.loading}}>
+ <UserInfoList @users={{@controller.model}} @isBirthday={{true}}>
+ {{i18n "birthdays.tomorrow.empty"}}
+ </UserInfoList>
+ </ConditionalLoadingSpinner>
+
+ <ConditionalLoadingSpinner @condition={{@controller.model.loadingMore}} />
+ </LoadMore>
+ </template>
+);
diff --git a/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/birthdays/upcoming.gjs b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/birthdays/upcoming.gjs
new file mode 100644
index 00000000000..d6201086e64
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/javascripts/discourse/templates/cakeday/birthdays/upcoming.gjs
@@ -0,0 +1,21 @@
+import RouteTemplate from "ember-route-template";
+import ConditionalLoadingSpinner from "discourse/components/conditional-loading-spinner";
+import LoadMore from "discourse/components/load-more";
+import { i18n } from "discourse-i18n";
+import UserInfoList from "../../../components/user-info-list";
+
+export default RouteTemplate(
+ <template>
+ <h2 class="cakeday-header">{{@controller.title}}</h2>
+
+ <LoadMore @selector=".user-info" @action={{@controller.loadMore}}>
+ <ConditionalLoadingSpinner @condition={{@controller.model.loading}}>
+ <UserInfoList @users={{@controller.model}} @isBirthday={{true}}>
+ {{i18n "birthdays.upcoming.empty"}}
+ </UserInfoList>
+ </ConditionalLoadingSpinner>
+
+ <ConditionalLoadingSpinner @condition={{@controller.model.loadingMore}} />
+ </LoadMore>
+ </template>
+);
diff --git a/plugins/discourse-cakeday/assets/stylesheets/cakeday.scss b/plugins/discourse-cakeday/assets/stylesheets/cakeday.scss
new file mode 100644
index 00000000000..2a833948ad6
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/stylesheets/cakeday.scss
@@ -0,0 +1,46 @@
+.cakeday {
+ --cakeday-header-spacing: 2rem;
+
+ .cakeday-months {
+ display: inline-flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 0 0.75em;
+ margin: 0.7rem 0 var(--cakeday-header-spacing);
+
+ .cakeday-header {
+ margin: 0;
+ }
+
+ .select-kit.combo-box .select-kit-header {
+ font-weight: bold;
+ font-size: var(--font-up-1);
+ margin: 0;
+ }
+ }
+
+ .cakeday-header {
+ margin: var(--cakeday-header-spacing) 0 var(--cakeday-header-spacing);
+ }
+
+ ul.user-info-list {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
+ gap: 2em;
+ list-style-type: none;
+ margin: 0;
+
+ .details {
+ color: var(--primary-medium);
+ }
+
+ .user-info-empty-message {
+ color: var(--primary-high);
+ padding-bottom: 2em;
+
+ p {
+ margin: 0;
+ }
+ }
+ }
+}
diff --git a/plugins/discourse-cakeday/assets/stylesheets/emoji-images.scss b/plugins/discourse-cakeday/assets/stylesheets/emoji-images.scss
new file mode 100644
index 00000000000..faea66a3b99
--- /dev/null
+++ b/plugins/discourse-cakeday/assets/stylesheets/emoji-images.scss
@@ -0,0 +1,3 @@
+.emoji-images {
+ display: inline-block;
+}
diff --git a/plugins/discourse-cakeday/config/locales/client.ar.yml b/plugins/discourse-cakeday/config/locales/client.ar.yml
new file mode 100644
index 00000000000..8da637ccfe9
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.ar.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ar:
+ js:
+ user:
+ date_of_birth:
+ user_title: "اليوم هو عيد ميلادك!"
+ title: "اليوم هو عيد ميلادي!"
+ label: "تاريخ الميلاد"
+ anniversary:
+ user_title: "اليوم هو الذكرى السنوية لليوم الذي انضممت فيه إلى مجتمعنا!"
+ title: "اليوم هو الذكرى السنوية لانضمامي إلى هذا المجتمع!"
+ cakeday:
+ title: الكعكة
+ today: "اليوم"
+ tomorrow: "غدًا"
+ upcoming: "قادمة"
+ all: "الكل"
+ birthdays:
+ title: "أعياد الميلاد"
+ month:
+ title: "أعياد الميلاد في شهر"
+ empty: "لا يوجد مستخدمون يحتفلون بأعياد ميلادهم هذا الشهر."
+ upcoming:
+ title: "أعياد الميلاد في الفترة من %{start_date} إلى %{end_date}"
+ empty: "لا يوجد مستخدمون يحتفلون بأعياد ميلادهم في السبعة أيام القادمة."
+ today:
+ title: "أعياد الميلاد في %{date}"
+ empty: "لا يوجد مستخدمون يحتفلون بأعياد ميلادهم اليوم."
+ tomorrow:
+ empty: "لا يوجد مستخدمون يحتفلون بأعياد ميلادهم غدًا."
+ anniversaries:
+ title: "احتفالات الذكرى السنوية"
+ month:
+ title: "احتفالات الذكرى السنوية في شهر"
+ empty: "لا يوجد مستخدمون يحتفلون بالذكرى السنوية هذا الشهر."
+ upcoming:
+ title: "احتفالات الذكرى السنوية في الفترة من %{start_date} إلى %{end_date}"
+ empty: "لا يوجد مستخدمون يحتفلون بالذكرى السنوية في السبعة أيام القادمة."
+ today:
+ title: "احتفالات الذكرى السنوية في %{date}"
+ empty: "لا يوجد مستخدمون يحتفلون بالذكرى السنوية اليوم."
+ tomorrow:
+ empty: "لا يوجد مستخدمون يحتفلون بالذكرى السنوية غدًا."
diff --git a/plugins/discourse-cakeday/config/locales/client.be.yml b/plugins/discourse-cakeday/config/locales/client.be.yml
new file mode 100644
index 00000000000..a945e4a68ab
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.be.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+be:
+ js:
+ cakeday:
+ today: "Today"
+ tomorrow: "заўтра"
+ all: "усе"
diff --git a/plugins/discourse-cakeday/config/locales/client.bg.yml b/plugins/discourse-cakeday/config/locales/client.bg.yml
new file mode 100644
index 00000000000..7c8c5f8073b
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.bg.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+bg:
+ js:
+ cakeday:
+ today: "Днес"
+ tomorrow: "Утре"
+ all: "Всички"
diff --git a/plugins/discourse-cakeday/config/locales/client.bs_BA.yml b/plugins/discourse-cakeday/config/locales/client.bs_BA.yml
new file mode 100644
index 00000000000..255e694bf46
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.bs_BA.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+bs_BA:
+ js:
+ cakeday:
+ today: "Today"
+ tomorrow: "Sutra"
+ all: "Sve"
diff --git a/plugins/discourse-cakeday/config/locales/client.ca.yml b/plugins/discourse-cakeday/config/locales/client.ca.yml
new file mode 100644
index 00000000000..c6d8475a181
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.ca.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ca:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Avui és el vostre natalici!"
+ title: "Avui és el meu natalici!"
+ label: "Data de naixement"
+ anniversary:
+ user_title: "Avui és l'aniversari del dia en què us vau sumar a la comunitat!"
+ title: "Avui és l'aniversari del dia en què em vaig sumar a aquesta comunitat!"
+ cakeday:
+ title: Dia de pastís
+ today: "Avui"
+ tomorrow: "Demà"
+ upcoming: "Vinent"
+ all: "Tots"
+ birthdays:
+ title: "Natalicis"
+ month:
+ title: "Natalicis en el mes de"
+ empty: "No hi ha usuaris que celebrin el natalici aquest mes."
+ upcoming:
+ title: "Natalicis en %{start_date} - %{end_date}"
+ empty: "No hi ha usuaris que celebri el natalici en els 7 dies vinents."
+ today:
+ title: "Natalicis en %{date}"
+ empty: "No hi ha usuaris que celebrin el natalici avui."
+ tomorrow:
+ empty: "No hi ha usuaris que celebrin el natalici demà."
+ anniversaries:
+ title: "Aniversaris"
+ month:
+ title: "Aniversaris del mes de"
+ empty: "No hi ha usuaris que celebrin un aniversari aquest mes."
+ upcoming:
+ title: "Aniversaris en %{start_date} - %{end_date}"
+ empty: "No hi ha usuaris que celebrin un aniversari en els 7 dies vinents."
+ today:
+ title: "Aniversaris en %{date}"
+ empty: "No hi ha usuaris que celebrin un aniversari avui."
+ tomorrow:
+ empty: "No hi ha usuaris que celebrin un aniversari demà."
diff --git a/plugins/discourse-cakeday/config/locales/client.cs.yml b/plugins/discourse-cakeday/config/locales/client.cs.yml
new file mode 100644
index 00000000000..4431de78045
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.cs.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+cs:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Dnes máte narozeniny!"
+ title: "Dnes jsou moje narozeniny!"
+ label: "Datum narození"
+ anniversary:
+ user_title: "Dnes je výročí dne, kdy jste se připojili k naší komunitě!"
+ title: "Dnes je výročí dne, kdy jsem se připojil/a k této komunitě!"
+ cakeday:
+ title: Cakeday
+ today: "Dnes"
+ tomorrow: "Zítra"
+ upcoming: "Nadcházející"
+ all: "Vše"
+ birthdays:
+ title: "Narozeniny"
+ month:
+ title: "Narozeniny v měsíci "
+ empty: "Tento měsíc neslaví narozeniny žádní uživatelé."
+ upcoming:
+ title: "Narozeniny %{start_date} - %{end_date}"
+ empty: "V příštích 7 dnech neslaví narozeniny žádní uživatelé."
+ today:
+ title: "Narozeniny %{date}"
+ empty: "Dnes neslaví narozeniny žádní uživatelé."
+ tomorrow:
+ empty: "Zítra neslaví narozeniny žádní uživatelé."
+ anniversaries:
+ title: "Výročí"
+ month:
+ title: "Výročí v měsíci "
+ empty: "Tento měsíc neslaví svá výročí žádní uživatelé."
+ upcoming:
+ title: "Výročí pro %{start_date} - %{end_date}"
+ empty: "V příštích 7 dnech neslaví svá výročí žádní uživatelé."
+ today:
+ title: "Výročí pro %{date}"
+ empty: "Dnes neslaví výročí žádní uživatelé."
+ tomorrow:
+ empty: "Zítra neslaví výročí žádní uživatelé."
diff --git a/plugins/discourse-cakeday/config/locales/client.da.yml b/plugins/discourse-cakeday/config/locales/client.da.yml
new file mode 100644
index 00000000000..a2e71c612a2
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.da.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+da:
+ js:
+ user:
+ date_of_birth:
+ user_title: "I dag er det din fødselsdag!"
+ title: "I dag er det min fødselsdag!"
+ label: "Fødselsdato"
+ anniversary:
+ user_title: "I dag er årsdagen hvor du blev en del af vores fælleskab!"
+ title: "I dag er årsdagen for at jeg blev en del af dette fælleskab!"
+ cakeday:
+ title: Kagedag
+ today: "I dag"
+ tomorrow: "I morgen"
+ upcoming: "Kommende"
+ all: "Alle"
+ birthdays:
+ title: "Fødselsdage"
+ month:
+ title: "Fødselsdage i måneden"
+ empty: "Der er ingen brugere med fødselsdag i denne måned."
+ upcoming:
+ title: "Fødselsdage i perioden %{start_date} - %{end_date}"
+ empty: "Der er ingen brugere, der fejrer deres fødselsdage i de næste 7 dage."
+ today:
+ title: "Fødselsdage den %{date}"
+ empty: "Der er ingen brugere med fødselsdag i dag."
+ tomorrow:
+ empty: "Der er ingen brugere med fødselsdag i morgen."
+ anniversaries:
+ title: "Årsdage"
+ month:
+ title: "Årsdage i følgende måned"
+ empty: "Der er ingen brugere med årsdag i denne måned."
+ upcoming:
+ title: "Årsdage i perioden %{start_date} - %{end_date}"
+ empty: "Der er ingen brugere med årsdag de næste 7 dage."
+ today:
+ title: "Årsdage den %{date}"
+ empty: "Der er ingen brugere med årsdag i dag."
+ tomorrow:
+ empty: "Der er ingen brugere med fødselsdag i morgen."
diff --git a/plugins/discourse-cakeday/config/locales/client.de.yml b/plugins/discourse-cakeday/config/locales/client.de.yml
new file mode 100644
index 00000000000..f91107eead0
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.de.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+de:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Heute ist dein Geburtstag!"
+ title: "Heute ist mein Geburtstag!"
+ label: "Geburtstag"
+ anniversary:
+ user_title: "Heute ist der Jahrestag deiner Registrierung!"
+ title: "Heute ist der Jahrestag meiner Registrierung!"
+ cakeday:
+ title: Jahrestag
+ today: "Heute"
+ tomorrow: "Morgen"
+ upcoming: "Demnächst"
+ all: "Alle"
+ birthdays:
+ title: "Geburtstage"
+ month:
+ title: "Geburtstage im Monat"
+ empty: "Kein Benutzer feiert diesen Monat seinen Geburtstag."
+ upcoming:
+ title: "Bevorstehende Geburtstage %{start_date}–%{end_date}"
+ empty: "Kein Benutzer feiert in den nächsten 7 Tagen seinen Geburtstag."
+ today:
+ title: "Geburtstage %{date}"
+ empty: "Kein Benutzer feiert heute seinen Geburtstag."
+ tomorrow:
+ empty: "Kein Benutzer feiert morgen seinen Geburtstag."
+ anniversaries:
+ title: "Jahrestage"
+ month:
+ title: "Jahrestage des Monats"
+ empty: "Kein Benutzer feiert in diesem Monat seinen Jahrestag."
+ upcoming:
+ title: "Bevorstehende Jahrestage %{start_date}–%{end_date}"
+ empty: "Kein Benutzer feiert in den nächsten 7 Tagen seinen Jahrestag."
+ today:
+ title: "Jahrestage %{date}"
+ empty: "Kein Benutzer feiert heute seinen Jahrestag."
+ tomorrow:
+ empty: "Kein Benutzer feiert morgen seinen Jahrestag."
diff --git a/plugins/discourse-cakeday/config/locales/client.el.yml b/plugins/discourse-cakeday/config/locales/client.el.yml
new file mode 100644
index 00000000000..847e8992be0
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.el.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+el:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Σήμερα είναι τα γενέθλια σου!"
+ title: "Σήμερα είναι τα γενέθλιά μου!"
+ label: "Ημερομηνια γεννησης"
+ anniversary:
+ user_title: "Σήμερα είναι η επέτειος της ημέρας που εντάχθηκες στην κοινότητά μας!"
+ title: "Σήμερα είναι η επέτειος της ημέρας που μπήκα σε αυτήν την κοινότητα!"
+ cakeday:
+ title: Cakeday
+ today: "Σήμερα"
+ tomorrow: "Αύριο"
+ upcoming: "Προσεχώς"
+ all: "Όλα"
+ birthdays:
+ title: "Γενέθλια"
+ month:
+ title: "Γενέθλια του Μήνα"
+ empty: "Δεν υπάρχουν χρήστες που να γιορτάζουν τα γενέθλιά τους αυτόν τον μήνα."
+ upcoming:
+ title: "Γενέθλια για %{start_date} - %{end_date}"
+ empty: "Δεν υπάρχουν χρήστες που να γιορτάζουν τα γενέθλιά τους τις επόμενες 7 ημέρες."
+ today:
+ title: "Γενέθλια για %{date}"
+ empty: "Δεν υπάρχουν χρήστες που να γιορτάζουν τα γενέθλιά τους σήμερα."
+ tomorrow:
+ empty: "Δεν υπάρχουν χρήστες που να γιορτάζουν τα γενέθλιά τους αύριο."
+ anniversaries:
+ title: "Επέτειοι"
+ month:
+ title: "Επέτειοι του Μήνα"
+ empty: "Δεν υπάρχουν χρήστες που γιορτάζουν την επέτειο τους αυτόν τον μήνα."
+ upcoming:
+ title: "Επέτειοι για %{start_date} - %{end_date}"
+ empty: "Δεν υπάρχουν χρήστες που γιορτάζουν την επέτειο τους τις επόμενες 7 ημέρες."
+ today:
+ title: "Επέτειοι για %{date}"
+ empty: "Δεν υπάρχουν χρήστες που γιορτάζουν την επέτειο τους σήμερα."
+ tomorrow:
+ empty: "Δεν υπάρχουν χρήστες που γιορτάζουν την επέτειο τους αύριο."
diff --git a/plugins/discourse-cakeday/config/locales/client.en.yml b/plugins/discourse-cakeday/config/locales/client.en.yml
new file mode 100644
index 00000000000..fd5af7d5f22
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.en.yml
@@ -0,0 +1,43 @@
+en:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Today is your birthday!"
+ title: "Today is my birthday!"
+ label: "Date of Birth"
+ anniversary:
+ user_title: "Today is the anniversary of the day you joined our community!"
+ title: "Today is the anniversary of the day I joined this community!"
+ cakeday:
+ none: " "
+ title: Cakeday
+ today: "Today"
+ tomorrow: "Tomorrow"
+ upcoming: "Upcoming"
+ all: "All"
+ birthdays:
+ title: "Birthdays"
+ month:
+ title: "Birthdays in the Month of"
+ empty: "There are no users celebrating their birthdays this month."
+ upcoming:
+ title: "Birthdays for %{start_date} - %{end_date}"
+ empty: "There are no users celebrating their birthdays in the next 7 days."
+ today:
+ title: "Birthdays for %{date}"
+ empty: "There are no users celebrating their birthdays today."
+ tomorrow:
+ empty: "There are no users celebrating their birthdays tomorrow."
+ anniversaries:
+ title: "Anniversaries"
+ month:
+ title: "Anniversaries in the Month of"
+ empty: "There are no users celebrating their anniversaries this month."
+ upcoming:
+ title: "Anniversaries for %{start_date} - %{end_date}"
+ empty: "There are no users celebrating their anniversaries in the next 7 days."
+ today:
+ title: "Anniversaries for %{date}"
+ empty: "There are no users celebrating their anniversaries today."
+ tomorrow:
+ empty: "There are no users celebrating their anniversaries tomorrow."
diff --git a/plugins/discourse-cakeday/config/locales/client.en_GB.yml b/plugins/discourse-cakeday/config/locales/client.en_GB.yml
new file mode 100644
index 00000000000..2d4fa180ec7
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.en_GB.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+en_GB:
diff --git a/plugins/discourse-cakeday/config/locales/client.es.yml b/plugins/discourse-cakeday/config/locales/client.es.yml
new file mode 100644
index 00000000000..c73dae47a80
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.es.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+es:
+ js:
+ user:
+ date_of_birth:
+ user_title: "¡Hoy es tu cumpleaños!"
+ title: "¡Hoy es mi cumpleaños!"
+ label: "Fecha de nacimiento"
+ anniversary:
+ user_title: "¡Hoy es el aniversario del día en que te uniste a nuestra comunidad!"
+ title: "¡Hoy es el aniversario del día en que me uní a esta comunidad!"
+ cakeday:
+ title: Día de tarta
+ today: "Hoy"
+ tomorrow: "Mañana"
+ upcoming: "Próximamente"
+ all: "Todo"
+ birthdays:
+ title: "Cumpleaños"
+ month:
+ title: "Cumpleaños en el mes de"
+ empty: "No hay usuarios que celebren sus cumpleaños este mes."
+ upcoming:
+ title: "Cumpleaños para %{start_date} - %{end_date}"
+ empty: "No hay usuarios que celebren sus cumpleaños en los próximos 7 días."
+ today:
+ title: "Cumpleaños para %{date}"
+ empty: "No hay usuarios que celebren sus cumpleaños hoy."
+ tomorrow:
+ empty: "No hay usuarios que celebren sus cumpleaños mañana."
+ anniversaries:
+ title: "Aniversarios"
+ month:
+ title: "Aniversarios en el mes de"
+ empty: "No hay usuarios que celebren sus aniversarios este mes."
+ upcoming:
+ title: "Aniversarios para %{start_date} - %{end_date}"
+ empty: "No hay usuarios que celebren sus aniversarios en los próximos 7 días."
+ today:
+ title: "Aniversarios para %{date}"
+ empty: "No hay usuarios que celebren sus aniversarios hoy."
+ tomorrow:
+ empty: "No hay usuarios que celebren sus aniversarios mañana."
diff --git a/plugins/discourse-cakeday/config/locales/client.et.yml b/plugins/discourse-cakeday/config/locales/client.et.yml
new file mode 100644
index 00000000000..7ce54cfcdf6
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.et.yml
@@ -0,0 +1,23 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+et:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Täna on sinu sünnipäev!"
+ title: "Täna on minu sünnipäev!"
+ label: "Sünnipäev"
+ cakeday:
+ title: Koogipäev
+ today: "Täna"
+ tomorrow: "Homme"
+ upcoming: "Tulevased"
+ all: "Kõik"
+ birthdays:
+ title: "Sünnipäevad"
+ anniversaries:
+ title: "Tähtpäevad"
diff --git a/plugins/discourse-cakeday/config/locales/client.fa.yml b/plugins/discourse-cakeday/config/locales/client.fa.yml
new file mode 100644
index 00000000000..b030bc7449a
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.fa.yml
@@ -0,0 +1,42 @@
+# encoding: utf-8
+#
+# Never edit this file. It will be overwritten when translations are pulled from Transifex.
+#
+# To work with us on translations, join this project:
+# https://www.transifex.com/projects/p/discourse-org/
+
+fa:
+ js:
+ user:
+ date_of_birth:
+ user_title: "امروز تولدته!"
+ title: "امروز تولد کاربر هست!"
+ label: "تاریخ تولد"
+ anniversary:
+ user_title: "امروز سالگرد ثبت نام شماست!"
+ title: "امروز سالگرد ثبت نام کربر است!"
+ cakeday:
+ none: " "
+ title: Cakeday
+ birthdays:
+ title: "تولدها"
+ month:
+ title: "تولدها در ماه"
+ empty: "هیچ کاربری تولدش را در این ماه جشن نمیگیرد."
+ upcoming:
+ title: "تولدهای پیش رو"
+ empty: "هیچ کاربری در ۷ روز آینده تولدش را جشن نمیگیرد."
+ today:
+ title: "تولدهای امروز"
+ empty: "هیچ کاربری تولدش را امروز جشن نمیگیرد."
+ anniversaries:
+ title: "سالگردها"
+ month:
+ title: "سالگردهای ماه"
+ empty: "هیچ کاربری سالگرد ثبت نامش را این ماه جشن نمیگیرد."
+ upcoming:
+ title: "سالگردهای پیش رو"
+ empty: "هیچ کاربری سالگرد ثبت نامش را در ۷ روز آینده جشن نمیگیرد."
+ today:
+ title: "سالگردهای امروز"
+ empty: "هیچ کاربری سالگرد ثبت نامش را امروز جشن نمیگیرد."
diff --git a/plugins/discourse-cakeday/config/locales/client.fa_IR.yml b/plugins/discourse-cakeday/config/locales/client.fa_IR.yml
new file mode 100644
index 00000000000..5d0c91371c3
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.fa_IR.yml
@@ -0,0 +1,16 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+fa_IR:
+ js:
+ user:
+ date_of_birth:
+ user_title: "امروز روز تولد شماست!"
+ title: "امروز روز تولد من است!"
+ cakeday:
+ today: "امروز"
+ tomorrow: "فردا"
+ all: "همه"
diff --git a/plugins/discourse-cakeday/config/locales/client.fi.yml b/plugins/discourse-cakeday/config/locales/client.fi.yml
new file mode 100644
index 00000000000..87710a87411
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.fi.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+fi:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Tänään on syntymäpäiväsi!"
+ title: "Tänään on syntymäpäiväni!"
+ label: "Syntymäpäivä"
+ anniversary:
+ user_title: "Tänään on yhteisöön liittymisesi vuosipäivä!"
+ title: "Tänään on yhteisöön liittymiseni vuosipäivä!"
+ cakeday:
+ title: Merkkipäivät
+ today: "Tänään"
+ tomorrow: "Huomenna"
+ upcoming: "Tulossa"
+ all: "Kaikki"
+ birthdays:
+ title: "Syntymäpäivät"
+ month:
+ title: "Syntymäpäivät,"
+ empty: "Kukaan ei vietä syntymäpäiväänsä tässä kuussa."
+ upcoming:
+ title: "Syntymäpäivät %{start_date}–%{end_date}"
+ empty: "Kukaan ei vietä syntymäpäiväänsä seuraavien 7 päivän aikana."
+ today:
+ title: "Syntymäpäivät %{date}"
+ empty: "Kukaan ei vietä syntymäpäiväänsä tänään."
+ tomorrow:
+ empty: "Kukaan ei vietä syntymäpäiväänsä huomenna."
+ anniversaries:
+ title: "Vuosipäivät"
+ month:
+ title: "Vuosipäivät,"
+ empty: "Kukaan ei vietä vuosipäiväänsä tässä kuussa."
+ upcoming:
+ title: "Vuosipäivät %{start_date}–%{end_date}"
+ empty: "Kukaan ei vietä vuosipäiväänsä seuraavien 7 päivän aikana."
+ today:
+ title: "Vuosipäivät %{date}"
+ empty: "Kukaan ei vietä vuosipäiväänsä tänään."
+ tomorrow:
+ empty: "Kukaan ei vietä vuosipäiväänsä huomenna."
diff --git a/plugins/discourse-cakeday/config/locales/client.fr.yml b/plugins/discourse-cakeday/config/locales/client.fr.yml
new file mode 100644
index 00000000000..d46d228109e
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.fr.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+fr:
+ js:
+ user:
+ date_of_birth:
+ user_title: "C'est votre anniversaire aujourd'hui !"
+ title: "C'est mon anniversaire aujourd'hui !"
+ label: "Date de naissance"
+ anniversary:
+ user_title: "Aujourd'hui est l'anniversaire de votre arrivée dans notre communauté !"
+ title: "Aujourd'hui est l'anniversaire de mon arrivée dans cette communauté !"
+ cakeday:
+ title: Célébration
+ today: "Aujourd'hui"
+ tomorrow: "Demain"
+ upcoming: "Prochainement"
+ all: "Tous"
+ birthdays:
+ title: "Anniversaires"
+ month:
+ title: "Anniversaires du mois de"
+ empty: "Aucun utilisateur ne fête son anniversaire ce mois-ci."
+ upcoming:
+ title: "Anniversaires du %{start_date} au %{end_date}"
+ empty: "Aucun utilisateur ne fêtera son anniversaire dans les 7 prochains jours."
+ today:
+ title: "Anniversaires le %{date}"
+ empty: "Aucun utilisateur ne fête son anniversaire aujourd'hui."
+ tomorrow:
+ empty: "Aucun utilisateur ne fête son anniversaire demain."
+ anniversaries:
+ title: "Anniversaires d'adhésion"
+ month:
+ title: "Anniversaires d'adhésion du mois de"
+ empty: "Aucun utilisateur ne fête son anniversaire d'adhésion ce mois-ci."
+ upcoming:
+ title: "Anniversaires d'adhésion du %{start_date} au %{end_date}"
+ empty: "Aucun utilisateur ne fêtera son anniversaire d'adhésion dans les 7 prochains jours."
+ today:
+ title: "Anniversaires d'adhésion le %{date}"
+ empty: "Aucun utilisateur ne fête son anniversaire d'adhésion aujourd'hui."
+ tomorrow:
+ empty: "Aucun utilisateur ne fête son anniversaire d'adhésion demain."
diff --git a/plugins/discourse-cakeday/config/locales/client.gl.yml b/plugins/discourse-cakeday/config/locales/client.gl.yml
new file mode 100644
index 00000000000..8256ac9f58c
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.gl.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+gl:
+ js:
+ cakeday:
+ today: "Hoxe"
+ tomorrow: "Mañá"
+ all: "Todo"
diff --git a/plugins/discourse-cakeday/config/locales/client.he.yml b/plugins/discourse-cakeday/config/locales/client.he.yml
new file mode 100644
index 00000000000..91f4274da18
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.he.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+he:
+ js:
+ user:
+ date_of_birth:
+ user_title: "היום הוא יום הולדתך!"
+ title: "היום הוא יום ההולדת שלי!"
+ label: "תאריך יום הולדת"
+ anniversary:
+ user_title: "היום הוא יום השנה להצטרפותך לקהילה שלנו!"
+ title: "היום הוא יום השנה להצטרפותי להקהילה הזאת!"
+ cakeday:
+ title: יום עוגה
+ today: "היום"
+ tomorrow: "מחר"
+ upcoming: "בקרוב"
+ all: "הכל"
+ birthdays:
+ title: "ימי הולדת"
+ month:
+ title: "ימי הולדת בחודש מתוך"
+ empty: "אין משתמשים שחוגגים את יום ההולדת שלהם החודש."
+ upcoming:
+ title: "ימי הולדת בטווח %{start_date} - %{end_date}"
+ empty: "אין משתמשים שחוגגים יום הולדת ב־7 הימים הקרובים."
+ today:
+ title: "ימי הולדת לתאריך %{date}"
+ empty: "אין משתמשים שחוגגים את יום ההולדת שלהם היום."
+ tomorrow:
+ empty: "אין משתמשים שחוגגים את יום ההולדת שלהם מחר."
+ anniversaries:
+ title: "ימי שנה"
+ month:
+ title: "ימי שנה החודש"
+ empty: "אין משתמשים שחוגגים יום שנה למשהו החודש."
+ upcoming:
+ title: "ימי שנה לטווח %{start_date} - %{end_date}"
+ empty: "אין משתמשים שחוגגים ימי שנה ב־7 הימים הבאים."
+ today:
+ title: "ימי שנה עבור %{date}"
+ empty: "אין משתמשים שחוגגים ימי שנה היום."
+ tomorrow:
+ empty: "אין משתמשים שחוגגים ימי שנה מחר."
diff --git a/plugins/discourse-cakeday/config/locales/client.hr.yml b/plugins/discourse-cakeday/config/locales/client.hr.yml
new file mode 100644
index 00000000000..128a2d3b0f5
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.hr.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+hr:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Danas vam je rođendan!"
+ title: "Danas mi je rođendan!"
+ label: "Datum rođenja"
+ anniversary:
+ user_title: "Danas je godišnjica vašeg učlanjenja na forum!"
+ title: "Danas je godišnjica mog učlanjenja na forum!"
+ cakeday:
+ title: Godišnjica učlanjenja
+ today: "Danas"
+ tomorrow: "Sutra"
+ upcoming: "Nadolazeći"
+ all: "Sve"
+ birthdays:
+ title: "Rođendani"
+ month:
+ title: "Rođendani u mjesecu"
+ empty: "Nema korisnika koji imaju rođendane ovaj mjesec."
+ upcoming:
+ title: "Rođendani od %{start_date} do %{end_date}"
+ empty: "Nema korisnika kojima je rođendan u sljedećih sedam dana."
+ today:
+ title: "Rođendani za %{date}"
+ empty: "Nema korisnika kojima je danas rođendan."
+ tomorrow:
+ empty: "Nema korisnika kojima je rođendan sutra."
+ anniversaries:
+ title: "Godišnjice"
+ month:
+ title: "Godišnjice u mjesecu"
+ empty: "Nema korisnika kojima je godišnjica ovaj mjesec."
+ upcoming:
+ title: "Godišnjice za %{start_date} - %{end_date}"
+ empty: "Nema korisnika kojima je godišnjica u sljedećih sedam dana."
+ today:
+ title: "Godišnjice za %{date}"
+ empty: "Nema korisnika koji danas slave godišnjice."
+ tomorrow:
+ empty: "Nema korisnika koji sutra slave godišnjicu."
diff --git a/plugins/discourse-cakeday/config/locales/client.hu.yml b/plugins/discourse-cakeday/config/locales/client.hu.yml
new file mode 100644
index 00000000000..7e7e7e3ec7d
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.hu.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+hu:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Ma van a születésnapod!"
+ title: "Ma van a születésnapom!"
+ label: "Születési dátum"
+ anniversary:
+ user_title: "Ma van az évfordulója, hogy csatlakoztál a közösségünkhöz!"
+ title: "Ma van az évfordulója, hogy csatlakoztam ehhez a közösséghez!"
+ cakeday:
+ title: Tortanap
+ today: "Ma"
+ tomorrow: "Holnap"
+ upcoming: "Közelgő"
+ all: "Mind"
+ birthdays:
+ title: "Születésnapok"
+ month:
+ title: "Születésnapok ebben a hónapban"
+ empty: "Nincs olyan felhasználó, aki ebben a hónapban ünnepli a születésnapját."
+ upcoming:
+ title: "Születésnapok %{start_date} - %{end_date}"
+ empty: "Nincs olyan felhasználó, aki a következő 7 napban ünnepli a születésnapját."
+ today:
+ title: "Születésnapok %{date}"
+ empty: "Nincs olyan felhasználó, aki ma ünnepli a születésnapját."
+ tomorrow:
+ empty: "Nincs olyan felhasználó, aki holnap ünnepli a születésnapját."
+ anniversaries:
+ title: "Évfordulók"
+ month:
+ title: "Évfordulók ebben a hónapban"
+ empty: "Nincs olyan felhasználó, aki ebben a hónapban ünnepli az évfordulóját."
+ upcoming:
+ title: "Évfordulók %{start_date} - %{end_date}"
+ empty: "Nincs olyan felhasználó, aki a következő 7 napban ünnepli az évfordulóját."
+ today:
+ title: "Évfordulók %{date}"
+ empty: "Nincs olyan felhasználó, aki ma ünnepli az évfordulóját."
+ tomorrow:
+ empty: "Nincs olyan felhasználó, aki holnap ünnepli az évfordulóját."
diff --git a/plugins/discourse-cakeday/config/locales/client.hy.yml b/plugins/discourse-cakeday/config/locales/client.hy.yml
new file mode 100644
index 00000000000..95e808cd922
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.hy.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+hy:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Այսօր Ձեր ծննդյան օրն է!"
+ title: "Այսօր իմ ծննդյան օրն է!"
+ label: "Ծննդյան ամսաթիվ"
+ anniversary:
+ user_title: "Այսօր մեր համայնքին Ձեր միանալու տարեդարձն է!"
+ title: "Այսօր լրանում է այս համայնքին իմ միանալու տարեդարձը!"
+ cakeday:
+ title: Տարթի օր
+ today: "Այսօր"
+ tomorrow: "Վաղը"
+ upcoming: "Առաջիկա"
+ all: "Բոլոր"
+ birthdays:
+ title: "Ծննդյան օրեր"
+ month:
+ title: "Հետևյալ Ամսվա Ծննդյան օրեր"
+ empty: "Այս ամիս ծննդյան օր նշող օգտատերեր չկան:"
+ upcoming:
+ title: "%{start_date} - %{end_date} -ի ծննդյան օրեր"
+ empty: "Հաջորդ 7 օրերին ծննդյան օր նշող օգտատերեր չկան:"
+ today:
+ title: "%{date} -ի ծննդյան օրեր"
+ empty: "Այսօր ծննդյան օր նշող օգտատերեր չկան:"
+ tomorrow:
+ empty: "Վաղը ծննդյան օր նշող օգտատերեր չկան:"
+ anniversaries:
+ title: "Տարեդարձներ"
+ month:
+ title: "Հետևյալ Ամսվա Տարեդարձեր՝"
+ empty: "Այս ամիս տարեդարձ նշող օգտատերեր չկան:"
+ upcoming:
+ title: " %{start_date} - %{end_date} -ի տարեդարձներ"
+ empty: " Հաջորդ 7 օրվա ընթացքում տարեդարձ նշող օգտատերեր չկան:"
+ today:
+ title: "%{date}-ի տարեդարձներ"
+ empty: "Այսօր տարեդարձ նշող օգտատերեր չկան:"
+ tomorrow:
+ empty: "Վաղը տարեդարձ նշող օգտատերեր չկան:"
diff --git a/plugins/discourse-cakeday/config/locales/client.id.yml b/plugins/discourse-cakeday/config/locales/client.id.yml
new file mode 100644
index 00000000000..80c19653100
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.id.yml
@@ -0,0 +1,28 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+id:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Hari ini adalah ulang tahunmu!"
+ title: "Hari ini hari ulang tahunku!"
+ label: "Tanggal Lahir"
+ cakeday:
+ title: Cakeday
+ today: "Hari ini"
+ tomorrow: "Besok"
+ upcoming: "Akan datang"
+ all: "Semua"
+ birthdays:
+ title: "Ulang tahun"
+ month:
+ title: "Ulang tahun di Bulan"
+ upcoming:
+ title: "Ulang tahun untuk %{start_date} - %{end_date}"
+ today:
+ title: "Ulang tahun untuk %{date}"
+ empty: "Tidak ada yang merayakan ulang tahun mereka hari ini."
diff --git a/plugins/discourse-cakeday/config/locales/client.it.yml b/plugins/discourse-cakeday/config/locales/client.it.yml
new file mode 100644
index 00000000000..966b72de3a9
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.it.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+it:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Oggi è il tuo compleanno!"
+ title: "Oggi è il mio compleanno!"
+ label: "Data di nascita"
+ anniversary:
+ user_title: "Oggi è l'anniversario della tua iscrizione a questa community!"
+ title: "Oggi è l'anniversario della mia iscrizione a questa community!"
+ cakeday:
+ title: Giorno di festa
+ today: "Oggi"
+ tomorrow: "Domani"
+ upcoming: "Prossimi"
+ all: "Tutti"
+ birthdays:
+ title: "Compleanni"
+ month:
+ title: "Compleanni nel mese di"
+ empty: "Non ci sono utenti che compiono gli anni questo mese."
+ upcoming:
+ title: "Compleanni dal %{start_date} al %{end_date}"
+ empty: "Non ci sono utenti che compiono gli anni nei prossimi 7 giorni."
+ today:
+ title: "Compleanni del %{date}"
+ empty: "Non ci sono utenti che compiono gli anni oggi."
+ tomorrow:
+ empty: "Non ci sono utenti che compiranno gli anni domani."
+ anniversaries:
+ title: "Anniversari"
+ month:
+ title: "Anniversari del mese di"
+ empty: "Non ci sono utenti che festeggiano anniversari questo mese."
+ upcoming:
+ title: "Anniversari dal %{start_date} al %{end_date}"
+ empty: "Non ci sono utenti che festeggiano anniversari nei prossimi 7 giorni."
+ today:
+ title: "Anniversari del %{date}"
+ empty: "Non ci sono utenti che festeggiano anniversari oggi."
+ tomorrow:
+ empty: "Non ci sono utenti che festeggiano anniversari domani."
diff --git a/plugins/discourse-cakeday/config/locales/client.ja.yml b/plugins/discourse-cakeday/config/locales/client.ja.yml
new file mode 100644
index 00000000000..aaeff2f5c19
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.ja.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ja:
+ js:
+ user:
+ date_of_birth:
+ user_title: "今日はあなたの誕生日です!"
+ title: "今日は私の誕生日です!"
+ label: "生年月日"
+ anniversary:
+ user_title: "今日は、あなたが私たちのコミュニティーに参加した日の記念日です!"
+ title: "今日は、私がこのコミュニティーに参加した日の記念日です!"
+ cakeday:
+ title: ケーキデイ
+ today: "今日"
+ tomorrow: "明日"
+ upcoming: "今後"
+ all: "すべて"
+ birthdays:
+ title: "誕生日"
+ month:
+ title: "月の誕生日"
+ empty: "今月が誕生日のユーザーはいません。"
+ upcoming:
+ title: "%{start_date}~%{end_date} の誕生日"
+ empty: "今後 7 日間が誕生日のユーザーはいません。"
+ today:
+ title: "%{date} の誕生日"
+ empty: "今日が誕生日のユーザーはいません。"
+ tomorrow:
+ empty: "明日が誕生日のユーザーはいません。"
+ anniversaries:
+ title: "記念日"
+ month:
+ title: "月の記念日"
+ empty: "今月記念日のあるユーザーはいません。"
+ upcoming:
+ title: "%{start_date}~%{end_date} の記念日"
+ empty: "今後 7 日間に記念日のあるユーザーはいません。"
+ today:
+ title: "%{date} の記念日"
+ empty: "今日が記念日のユーザーはいません。"
+ tomorrow:
+ empty: "明日が記念日のユーザーはいません。"
diff --git a/plugins/discourse-cakeday/config/locales/client.ko.yml b/plugins/discourse-cakeday/config/locales/client.ko.yml
new file mode 100644
index 00000000000..0c430841bf7
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.ko.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ko:
+ js:
+ user:
+ date_of_birth:
+ user_title: "오늘은 너의 생일이야!"
+ title: "오늘은 내 생일!"
+ label: "생년월일"
+ anniversary:
+ user_title: "오늘은 커뮤니티에 가입 한 기념일입니다."
+ title: "오늘은이 커뮤니티에 가입 한 기념일입니다."
+ cakeday:
+ title: 케이크 데이
+ today: "오늘"
+ tomorrow: "내일"
+ upcoming: "다가오는"
+ all: "모두"
+ birthdays:
+ title: "생일"
+ month:
+ title: "달의 생일"
+ empty: "이번 달에 생일을 축하하는 사용자는 없습니다."
+ upcoming:
+ title: "%{start_date}의 생일-%{end_date}"
+ empty: "다음 7 일 동안 생일을 축하하는 사용자는 없습니다."
+ today:
+ title: "%{date}의 생일"
+ empty: "오늘 생일을 축하하는 사용자가 없습니다."
+ tomorrow:
+ empty: "내일 생일을 축하하는 사용자는 없습니다."
+ anniversaries:
+ title: "기념일"
+ month:
+ title: "이달의 기념일"
+ empty: "이번 달에는 기념일을 축하하는 사용자가 없습니다."
+ upcoming:
+ title: "%{start_date}-%{end_date}의 기념일"
+ empty: "다음 7 일 동안 기념일을 축하하는 사용자는 없습니다."
+ today:
+ title: "%{date}의 기념일"
+ empty: "오늘 기념일을 축하하는 사용자가 없습니다."
+ tomorrow:
+ empty: "내일 기념일을 축하하는 사용자는 없습니다."
diff --git a/plugins/discourse-cakeday/config/locales/client.lt.yml b/plugins/discourse-cakeday/config/locales/client.lt.yml
new file mode 100644
index 00000000000..5198aa21113
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.lt.yml
@@ -0,0 +1,17 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+lt:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Šiandien tavo gimtadienis!"
+ title: "Šiandien mano gimtadienis!"
+ label: "Gimtadienis"
+ cakeday:
+ today: "Šandien"
+ tomorrow: "Rytoj"
+ all: "Visi"
diff --git a/plugins/discourse-cakeday/config/locales/client.lv.yml b/plugins/discourse-cakeday/config/locales/client.lv.yml
new file mode 100644
index 00000000000..ebd6360d629
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.lv.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+lv:
+ js:
+ cakeday:
+ today: "Šodienas"
+ tomorrow: "Rītdien"
+ all: "Visi"
diff --git a/plugins/discourse-cakeday/config/locales/client.nb_NO.yml b/plugins/discourse-cakeday/config/locales/client.nb_NO.yml
new file mode 100644
index 00000000000..0298d3fdf45
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.nb_NO.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+nb_NO:
+ js:
+ user:
+ date_of_birth:
+ user_title: "I dag er det din geburtsdag!"
+ title: "I dag er det min geburtsdag!"
+ label: "Fødselsdato"
+ anniversary:
+ user_title: "I dag er det jubileum for når du tok del i gemenskapen!"
+ title: "I dag er det jubileum for når du tok del i denne gemenskapen!"
+ cakeday:
+ title: Kakedag
+ today: "I dag"
+ tomorrow: "I morgen"
+ upcoming: "Kommende"
+ all: "Alle"
+ birthdays:
+ title: "Geburtsdager"
+ month:
+ title: "Geburtsdager som skjer i måneden"
+ empty: "Ingen brukere har bursdag denne måneden."
+ upcoming:
+ title: "Geburtsdager for %{start_date} - %{end_date}"
+ empty: "Ingen brukere har bursdag de neste 7 dagene."
+ today:
+ title: "Geburtsdager for %{date}"
+ empty: "Ingen brukere har bursdag i dag."
+ tomorrow:
+ empty: "Ingen brukere har bursdag i morgen."
+ anniversaries:
+ title: "Jubileum"
+ month:
+ title: "Jubileum som skjer i måneden"
+ empty: "Ingen brukere feirer jubileum denne måneden."
+ upcoming:
+ title: "Jubileum for %{start_date} - %{end_date}"
+ empty: "Ingen brukere har jubileum de neste 7 dagene."
+ today:
+ title: "Jubileum for %{date}"
+ empty: "Ingen brukere feirer jubileum i dag."
+ tomorrow:
+ empty: "Ingen brukere feirer jubileum i morgen."
diff --git a/plugins/discourse-cakeday/config/locales/client.nl.yml b/plugins/discourse-cakeday/config/locales/client.nl.yml
new file mode 100644
index 00000000000..f0bafb455ea
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.nl.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+nl:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Vandaag is je verjaardag!"
+ title: "Vandaag is mijn verjaardag!"
+ label: "Geboortedatum"
+ anniversary:
+ user_title: "Vandaag is het jubileum van de dag dat je bij onze community bent gekomen!"
+ title: "Vandaag is het jubileum van de dag dat ik bij deze community ben gekomen!"
+ cakeday:
+ title: Taartdag
+ today: "Vandaag"
+ tomorrow: "Morgen"
+ upcoming: "Binnenkort"
+ all: "Alle"
+ birthdays:
+ title: "Verjaardagen"
+ month:
+ title: "Verjaardagen in de maand"
+ empty: "Er zijn geen gebruikers die deze maand hun verjaardag vieren."
+ upcoming:
+ title: "Verjaardagen van %{start_date} tot %{end_date}"
+ empty: "Er zijn geen gebruikers die de komende 7 dagen hun verjaardag vieren."
+ today:
+ title: "Verjaardagen op %{date}"
+ empty: "Er zijn geen gebruikers die vandaag hun verjaardag vieren."
+ tomorrow:
+ empty: "Er zijn geen gebruikers die morgen hun verjaardag vieren."
+ anniversaries:
+ title: "Jubilea"
+ month:
+ title: "Jubilea in de maand"
+ empty: "Er zijn geen gebruikers die deze maand hun jubileum vieren."
+ upcoming:
+ title: "Jubilea van %{start_date} tot %{end_date}"
+ empty: "Er zijn geen gebruikers die de komende 7 dagen hun jubileum vieren."
+ today:
+ title: "Jubilea op %{date}"
+ empty: "Er zijn geen gebruikers die vandaag hun jubileum vieren."
+ tomorrow:
+ empty: "Er zijn geen gebruikers die morgen hun jubileum vieren."
diff --git a/plugins/discourse-cakeday/config/locales/client.pl_PL.yml b/plugins/discourse-cakeday/config/locales/client.pl_PL.yml
new file mode 100644
index 00000000000..838688b997a
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.pl_PL.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+pl_PL:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Dzisiaj są Twoje urodziny!"
+ title: "Dzisiaj są moje urodziny!"
+ label: "Data urodzenia"
+ anniversary:
+ user_title: "Dzisiaj jest rocznica Twojego dołączenia do społeczności!"
+ title: "Dzisiaj jest rocznica mojego dołączenia do społeczności!"
+ cakeday:
+ title: Urodziny
+ today: "Dzisiaj"
+ tomorrow: "Jutro"
+ upcoming: "Nadchodzące"
+ all: "Wszystkie"
+ birthdays:
+ title: "Urodziny"
+ month:
+ title: "Urodziny w miesiącu"
+ empty: "Nie ma użytkowników obchodzących swoje urodziny w tym miesiącu"
+ upcoming:
+ title: "Urodziny od %{start_date}do %{end_date}"
+ empty: "Nie ma użytkowników obchodzących swoje urodziny w następnych 7 dniach."
+ today:
+ title: "Urodziny%{date}"
+ empty: "Nie ma użytkowników obchodzących dzisiaj swoje urodziny."
+ tomorrow:
+ empty: "Nie ma użytkowników obchodzących jutro swoje urodziny."
+ anniversaries:
+ title: "Rocznice"
+ month:
+ title: "Rocznice w miesiącu"
+ empty: "Nie ma użytkowników obchodzących rocznice w tym miesiącu."
+ upcoming:
+ title: "Rocznice od %{start_date} do %{end_date} "
+ empty: "Nie ma użytkowników obchodzących rocznice w następnych 7 dniach."
+ today:
+ title: "Rocznice %{date}"
+ empty: " Nie ma użytkowników obchodzących dzisiaj rocznicę"
+ tomorrow:
+ empty: "Nie ma użytkowników obchodzących jutro rocznicę"
diff --git a/plugins/discourse-cakeday/config/locales/client.pt.yml b/plugins/discourse-cakeday/config/locales/client.pt.yml
new file mode 100644
index 00000000000..fa62aa8c7f1
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.pt.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+pt:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Hoje é o seu aniversário!"
+ title: "Hoje é o meu aniversário!"
+ label: "Data de Nascimento"
+ anniversary:
+ user_title: "Hoje é o aniversário do dia em que me juntei à nossa comunidade!"
+ title: "Hoje é o aniversário do dia em que me juntei a esta comunidade!"
+ cakeday:
+ title: Dia de Bolo
+ today: "Hoje"
+ tomorrow: "Amanhã"
+ upcoming: "Próximos"
+ all: "Todos"
+ birthdays:
+ title: "Aniversários"
+ month:
+ title: "Aniversários no mês de"
+ empty: "Não há utilizadores a celebrar os seus aniversários este mês."
+ upcoming:
+ title: "Aniversários para %{start_date} - %{end_date}"
+ empty: "Não há utilizadores a celebrar os seus aniversários nos próximos 7 dias."
+ today:
+ title: "Aniversários para %{date}"
+ empty: "Não há utilizadores a celebrar os seus aniversários hoje."
+ tomorrow:
+ empty: "Não há utilizadores a celebrar os seus aniversários amanhã."
+ anniversaries:
+ title: "Aniversários"
+ month:
+ title: "Aniversários no mês de"
+ empty: "Não há utilizadores a celebrar os seus aniversários este mês."
+ upcoming:
+ title: "Aniversários para %{start_date} - %{end_date}"
+ empty: "Não há utilizadores a celebrar os seus aniversários nos próximos 7 dias."
+ today:
+ title: "Aniversários para %{date}"
+ empty: "Não há utilizadores a celebrar os seus aniversários hoje."
+ tomorrow:
+ empty: "Não há utilizadores a celebrar os seus aniversários amanhã."
diff --git a/plugins/discourse-cakeday/config/locales/client.pt_BR.yml b/plugins/discourse-cakeday/config/locales/client.pt_BR.yml
new file mode 100644
index 00000000000..67cd055148c
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.pt_BR.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+pt_BR:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Hoje é o seu aniversário!"
+ title: "Hoje é o meu aniversário!"
+ label: "Data de nascimento"
+ anniversary:
+ user_title: "Hoje é a comemoração do dia em que você entrou na nossa comunidade!"
+ title: "Hoje é a comemoração do dia em que eu entrei nesta comunidade!"
+ cakeday:
+ title: Dia de Bolo
+ today: "Hoje"
+ tomorrow: "Amanhã"
+ upcoming: "Próximos"
+ all: "Todos"
+ birthdays:
+ title: "Aniversários"
+ month:
+ title: "Aniversários no mês de"
+ empty: "Não há usuários(as) comemorando seu aniversário neste mês."
+ upcoming:
+ title: "Aniversários para %{start_date} - %{end_date}"
+ empty: "Não há usuários(as) comemorando seu aniversário nos próximos sete dias."
+ today:
+ title: "Aniversários para %{date}"
+ empty: "Não há usuários(as) comemorando seu aniversário hoje."
+ tomorrow:
+ empty: "Não há usuários(as) comemorando seu aniversário amanhã."
+ anniversaries:
+ title: "Comemorações da comunidade"
+ month:
+ title: "Comemorações no mês de"
+ empty: "Não há usuários(as) com comemorações neste mês."
+ upcoming:
+ title: "Aniversários para %{start_date} - %{end_date}"
+ empty: "Não há usuários(as) com comemorações nos próximos sete dias."
+ today:
+ title: "Comemorações para %{date}"
+ empty: "Não há usuários(as) com comemorações hoje."
+ tomorrow:
+ empty: "Não há usuários(as) com comemorações amanhã."
diff --git a/plugins/discourse-cakeday/config/locales/client.ro.yml b/plugins/discourse-cakeday/config/locales/client.ro.yml
new file mode 100644
index 00000000000..4f09e64bcf9
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.ro.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ro:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Astăzi este ziua ta!"
+ title: "Astăzi este ziua mea!"
+ label: "Data nașterii"
+ anniversary:
+ user_title: "Astăzi este aniversarea zilei în care te-ai alăturat comunității noastre!"
+ title: "Astăzi este aniversarea zilei în care m-am alăturat acestei comunități!"
+ cakeday:
+ title: Cakeday - zi de naștere
+ today: "Astăzi"
+ tomorrow: "Mâine"
+ upcoming: "Urmează"
+ all: "Toate"
+ birthdays:
+ title: "Zile de naștere"
+ month:
+ title: "Zile de naștere în luna"
+ empty: "Nu există utilizatori care să îşi sărbătorească zilele de naştere luna aceasta."
+ upcoming:
+ title: "Zile de naștere pentru %{start_date} - %{end_date}"
+ empty: "Nu există utilizatori care să-și sărbătorească zilele de naștere în următoarele 7 zile."
+ today:
+ title: "Zile de naștere pentru %{date}"
+ empty: "Nu există utilizatori care își sărbătoresc ziua de naștere astăzi."
+ tomorrow:
+ empty: "Nu există utilizatori care își sărbătoresc ziua de naștere mâine."
+ anniversaries:
+ title: "Aniversări"
+ month:
+ title: "Aniversări în luna"
+ empty: "Nu există utilizatori care să își sărbătorească aniversările în această lună."
+ upcoming:
+ title: "Aniversări între %{start_date} - %{end_date}"
+ empty: "Nu există utilizatori care să-și sărbătorească aniversările în următoarele 7 zile."
+ today:
+ title: "Aniversări pentru %{date}"
+ empty: "Nu există utilizatori care să își sărbătorească aniversările astăzi."
+ tomorrow:
+ empty: "Nu există utilizatori care să își sărbătorească aniversările mâine."
diff --git a/plugins/discourse-cakeday/config/locales/client.ru.yml b/plugins/discourse-cakeday/config/locales/client.ru.yml
new file mode 100644
index 00000000000..860763f14bf
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.ru.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ru:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Сегодня ваш день рождения!"
+ title: "Сегодня мой день рождения!"
+ label: "День рождения"
+ anniversary:
+ user_title: "Сегодня годовщина вашей регистрации на форуме!"
+ title: "Сегодня годовщина моей регистрации на форуме!"
+ cakeday:
+ title: Годовщины
+ today: "Сегодня"
+ tomorrow: "Завтра"
+ upcoming: "Скоро"
+ all: "Все"
+ birthdays:
+ title: "Дни рождения"
+ month:
+ title: "Дни рождения за месяц"
+ empty: "Никто не отмечает свой день рождения в этом месяце."
+ upcoming:
+ title: "Дни рождения за период %{start_date} - %{end_date}"
+ empty: "Никто не отмечает свой день рождения в следующие 7 дней."
+ today:
+ title: "Дни рождения за %{date}"
+ empty: "Никто не отмечает свой день рождения сегодня."
+ tomorrow:
+ empty: "Никто не отмечает свой день рождения завтра."
+ anniversaries:
+ title: "Годовщины"
+ month:
+ title: "Годовщины за месяц"
+ empty: "Никто не отмечает свою годовщину на форуме в этом месяце."
+ upcoming:
+ title: "Годовщины за период %{start_date} - %{end_date}"
+ empty: "Никто не празднует свою годовщину на форуме в следующие 7 дней."
+ today:
+ title: "Годовщины за %{date}"
+ empty: "Никто не отмечает свою годовщину на форуме сегодня."
+ tomorrow:
+ empty: "Никто не отмечает свою годовщину на форуме завтра."
diff --git a/plugins/discourse-cakeday/config/locales/client.sk.yml b/plugins/discourse-cakeday/config/locales/client.sk.yml
new file mode 100644
index 00000000000..8e0db8c9c12
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.sk.yml
@@ -0,0 +1,19 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sk:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Dnes máte narodeniny!"
+ title: "Dnes mám narodeniny!"
+ label: "Dátum narodenia"
+ cakeday:
+ today: "Dnes"
+ tomorrow: "Zajtra"
+ all: "Všetky"
+ birthdays:
+ title: "Narodeniny"
diff --git a/plugins/discourse-cakeday/config/locales/client.sl.yml b/plugins/discourse-cakeday/config/locales/client.sl.yml
new file mode 100644
index 00000000000..85484a4ec44
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.sl.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sl:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Danes je vaš rojstni dan!"
+ title: "Danes je moj rojstni dan!"
+ label: "Datum rojstva"
+ anniversary:
+ user_title: "Danes je obletnica dneva, ko ste se pridružili naši skupnosti!"
+ title: "Danes je obletnica dneva, ko sem se pridružil/a tej skupnosti!"
+ cakeday:
+ title: Praznik
+ today: "Danes"
+ tomorrow: "Jutri"
+ upcoming: "Prihajajoči"
+ all: "Vsi"
+ birthdays:
+ title: "Rojstni dnevi"
+ month:
+ title: "Rojstni dnevi v mesecu"
+ empty: "V tem mesecu ni uporabnikov, ki bi praznovali rojstne dneve."
+ upcoming:
+ title: "Rojstni dnevi za %{start_date} - %{end_date}"
+ empty: "V naslednjih 7 dneh ni uporabnikov, ki bi praznovali rojstni dan."
+ today:
+ title: "Rojstni dnevi za %{date}"
+ empty: "Danes ni nobenega uporabnika, ki bi praznoval rojstni dan."
+ tomorrow:
+ empty: "Jutri ni nobenega uporabnika, ki bi praznoval rojstni dan."
+ anniversaries:
+ title: "Obletnice"
+ month:
+ title: "Obletnice v mesecu"
+ empty: "V tem mesecu ni uporabnikov, ki bi praznovali obletnico."
+ upcoming:
+ title: "Obletnice za %{start_date} - %{end_date}"
+ empty: "V naslednjih 7 dneh ni uporabnikov, ki bi praznovali obletnico."
+ today:
+ title: "Obletnice za %{date}"
+ empty: "Danes ni nobenega uporabnika, ki bi praznoval obletnico."
+ tomorrow:
+ empty: "Jutri ni nobenega uporabnika, ki bi praznoval obletnico."
diff --git a/plugins/discourse-cakeday/config/locales/client.sq.yml b/plugins/discourse-cakeday/config/locales/client.sq.yml
new file mode 100644
index 00000000000..e18d7b69a7d
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.sq.yml
@@ -0,0 +1,11 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sq:
+ js:
+ cakeday:
+ today: "Sot"
+ all: "Të gjitha"
diff --git a/plugins/discourse-cakeday/config/locales/client.sr.yml b/plugins/discourse-cakeday/config/locales/client.sr.yml
new file mode 100644
index 00000000000..e52c28bac2c
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.sr.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sr:
+ js:
+ cakeday:
+ today: "Danas"
+ tomorrow: "Sutra"
+ all: "Sve"
diff --git a/plugins/discourse-cakeday/config/locales/client.sv.yml b/plugins/discourse-cakeday/config/locales/client.sv.yml
new file mode 100644
index 00000000000..2db88f283a9
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.sv.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sv:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Idag är det din födelsedag!"
+ title: "Idag är det min födelsedag!"
+ label: "Födelsedatum"
+ anniversary:
+ user_title: "Idag är det årsdagen för när du gick med i vårt forum!"
+ title: "Idag är det årsdagen för när jag gick med i det här forumet!"
+ cakeday:
+ title: Tårtdag
+ today: "Idag"
+ tomorrow: "Imorgon"
+ upcoming: "Kommande"
+ all: "Alla"
+ birthdays:
+ title: "Födelsedagar"
+ month:
+ title: "Födelsedagar under månaden"
+ empty: "Inga användare har födelsedag den här månaden."
+ upcoming:
+ title: "Födelsedagar %{start_date} - %{end_date}"
+ empty: "Inga användare har födelsedag under de kommande sju dagarna."
+ today:
+ title: "Födelsedagar den %{date}"
+ empty: "Inga användare har födelsedag idag."
+ tomorrow:
+ empty: "Inga användare har födelsedag imorgon."
+ anniversaries:
+ title: "Årsdagar"
+ month:
+ title: "Årsdagar under månaden"
+ empty: "Inga användare har sin årsdag den här månaden."
+ upcoming:
+ title: "Årsdagar %{start_date} - %{end_date}"
+ empty: "Inga användare har sin årsdag under de kommande sju dagarna."
+ today:
+ title: "Årsdagar den %{date}"
+ empty: "Inga användare har sin årsdag idag."
+ tomorrow:
+ empty: "Inga användare har sin årsdag imorgon."
diff --git a/plugins/discourse-cakeday/config/locales/client.sw.yml b/plugins/discourse-cakeday/config/locales/client.sw.yml
new file mode 100644
index 00000000000..3e9cbad65d6
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.sw.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sw:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Leo ni siku yako ya kuzaliwa!"
+ title: "Leo ni siku yangu ya kuzaliwa!"
+ label: "Tarehe ya kuzaliwa"
+ anniversary:
+ user_title: "Leo ni siku uliyojiunga na jamii yetu!"
+ title: "Leo ni kumbukumbu ya siku niliyojiunga na hii jumuia!"
+ cakeday:
+ title: Siku ya keki
+ today: "Leo"
+ tomorrow: "Kesho"
+ upcoming: "Inayokuja"
+ all: "Yote"
+ birthdays:
+ title: "Siku za kuzaliwa"
+ month:
+ title: "Siku za kuzaliwa ndani ya Mwezi wa"
+ empty: "Hakuna watumiaji walio na siku za kuzaliwa kwenye huu mwezi."
+ upcoming:
+ title: "Siku za kuzaliwa za %{start_date} - %{end_date}"
+ empty: "Hakuna watumiaji wenye siku za kuzaliwa ndani ya siku 7 zijazo."
+ today:
+ title: "Siku za kuzaliwa za %{date}"
+ empty: "Hakuna watumiaji wanaosherekea siku zao za kuzaliwa leo."
+ tomorrow:
+ empty: "Hakuna watumiaji wanaosherekea siku za kuzaliwa kesho."
+ anniversaries:
+ title: "Siku za kumbukumbu"
+ month:
+ title: "Siku za kumbukumbu ndani ya mwezi wa"
+ empty: "Hakuna watumiaji wanaosherekea siku zao za kumbukumbu mwezi huu."
+ upcoming:
+ title: "Siku za kumbukumbu za %{start_date} - %{end_date}"
+ empty: "Hakuna watumiaji wanaosherehekea siku za kumbukumbu ndani ya siku 7 zijazo."
+ today:
+ title: "Siku za Kumbukumbu kwa %{date}"
+ empty: "Hakuna watumiaji wanaosherehekea siku za kumbukumbu leo."
+ tomorrow:
+ empty: "Hakuna watumiaji wanaosherehekea siku za kumbukumbu kesho."
diff --git a/plugins/discourse-cakeday/config/locales/client.te.yml b/plugins/discourse-cakeday/config/locales/client.te.yml
new file mode 100644
index 00000000000..56b298a9628
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.te.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+te:
+ js:
+ cakeday:
+ today: "ఈరోజు"
+ tomorrow: "రేపు"
+ all: "అన్నీ"
diff --git a/plugins/discourse-cakeday/config/locales/client.th.yml b/plugins/discourse-cakeday/config/locales/client.th.yml
new file mode 100644
index 00000000000..79d208928ca
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.th.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+th:
+ js:
+ cakeday:
+ today: "วันนี้"
+ tomorrow: "พรุ่งนี้"
+ all: "ทั้งหมด"
diff --git a/plugins/discourse-cakeday/config/locales/client.tr_TR.yml b/plugins/discourse-cakeday/config/locales/client.tr_TR.yml
new file mode 100644
index 00000000000..d430ba0de6d
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.tr_TR.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+tr_TR:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Bugün doğum gününüz!"
+ title: "Bugün benim doğum günüm!"
+ label: "Doğum Tarihi"
+ anniversary:
+ user_title: "Bugün, topluluğumuza katılmanızın yıl dönümü!"
+ title: "Bugün bu topluluğa katılmamın yıl dönümü!"
+ cakeday:
+ title: Pasta günü
+ today: "Bugün"
+ tomorrow: "Yarın"
+ upcoming: "Yaklaşan"
+ all: "Tümü"
+ birthdays:
+ title: "Doğum günleri"
+ month:
+ title: "Şu ayki doğum günleri:"
+ empty: "Bu ay doğum günü olan kullanıcı yok."
+ upcoming:
+ title: "%{start_date} - %{end_date} arası doğum günleri"
+ empty: "Gelecek 7 gün içinde doğum günü olan kullanıcı yok."
+ today:
+ title: "%{date} için doğum günleri"
+ empty: "Bugün doğum günü olan kullanıcı yok."
+ tomorrow:
+ empty: "Yarın doğum günü olan kullanıcı yok."
+ anniversaries:
+ title: "Yıl dönümleri"
+ month:
+ title: "Şu ayki yıl dönümleri:"
+ empty: "Bu ay yıl dönümü olan kullanıcı yok."
+ upcoming:
+ title: "%{start_date} - %{end_date} için yıl dönümleri"
+ empty: "Önümüzdeki 7 gün içinde yıl dönümü olan kullanıcı yok."
+ today:
+ title: "%{date} için yıl dönümleri"
+ empty: "Bugün yıl dönümü olan kullanıcı yok."
+ tomorrow:
+ empty: "Yarın yıl dönümü olan kullanıcı yok."
diff --git a/plugins/discourse-cakeday/config/locales/client.ug.yml b/plugins/discourse-cakeday/config/locales/client.ug.yml
new file mode 100644
index 00000000000..870d48726f3
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.ug.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ug:
+ js:
+ cakeday:
+ today: "بۈگۈن"
+ tomorrow: "ئەتە"
+ all: "ھەممىسى"
diff --git a/plugins/discourse-cakeday/config/locales/client.uk.yml b/plugins/discourse-cakeday/config/locales/client.uk.yml
new file mode 100644
index 00000000000..a1a77cb4639
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.uk.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+uk:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Сьогодні ваш день народження! "
+ title: "Сьогодні мій день народження!"
+ label: "Дата народження"
+ anniversary:
+ user_title: "Сьогодні річниця з моменту вашого приєднання до нашої спільноти!"
+ title: "Сьогодні річниця з моменту мого приєднання до цієї спільноти! "
+ cakeday:
+ title: День торта
+ today: "Сьогодні"
+ tomorrow: "Завтра"
+ upcoming: "Майбутні"
+ all: "Всі"
+ birthdays:
+ title: "Дні народження"
+ month:
+ title: "Дні народження в місяці"
+ empty: "В цьому місяці ніхто з користувачів не святкує свій день народження"
+ upcoming:
+ title: "Дня народження між %{start_date}та %{end_date}"
+ empty: "В наступні 7 днів ніхто з користувачів не святкує свій день народження"
+ today:
+ title: "Дня народження %{date}"
+ empty: "Сьогодні ніхто не святкує свій день народження"
+ tomorrow:
+ empty: "Завтра ніхто з користувачів не святкує свій день народження"
+ anniversaries:
+ title: "Річниці"
+ month:
+ title: "Річниці в місяці "
+ empty: "В цьому місяці ніхто з користувачів не не святкує річниці"
+ upcoming:
+ title: "Річниці між %{start_date} та %{end_date}"
+ empty: "В наступні 7 днів ніхто з користувачів не святкує річниці"
+ today:
+ title: "Річниці за %{date}"
+ empty: "Сьогодні ніхто з користувачів не святкує річниці"
+ tomorrow:
+ empty: "Завтра ніхто з користувачів не святкує річниці"
diff --git a/plugins/discourse-cakeday/config/locales/client.ur.yml b/plugins/discourse-cakeday/config/locales/client.ur.yml
new file mode 100644
index 00000000000..0e58b720d7d
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.ur.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ur:
+ js:
+ user:
+ date_of_birth:
+ user_title: "آج آپ کی سالگرہ ہے!"
+ title: "آج میری سالگرہ ہے!"
+ label: "تاریخِ پیدائش"
+ anniversary:
+ user_title: "آج آپ کا ہماری کمیونٹی میں شمولیت اختیار کرنے کی سالگرہ ہے!"
+ title: "آج میری اِس کمیونٹی میں شمولیت اختیار کرنے کی سالگرہ ہے!"
+ cakeday:
+ title: کَیک ڈے
+ today: "آج"
+ tomorrow: "کَل"
+ upcoming: "آنے والے"
+ all: "تمام"
+ birthdays:
+ title: "سالگرٰہیں"
+ month:
+ title: "کے مہینے کی سالگرٰہیں"
+ empty: "اِس مہینے کوئی صارف اپنی سالگرٰہ نہیں منارہے۔"
+ upcoming:
+ title: "%{start_date}- %{end_date} کی سالگرٰہیں"
+ empty: "اگلے 7 دنوں میں کوئی صارف اپنی سالگرٰہ نہیں منارہے۔"
+ today:
+ title: "%{date} کی سالگرہیں"
+ empty: "آج کوئی صارف اپنی سالگرٰہ نہیں منارہے۔"
+ tomorrow:
+ empty: "کل کوئی صارف اپنی سالگرٰہ نہیں منارہے۔"
+ anniversaries:
+ title: "سالگرٰہیں"
+ month:
+ title: "کے مہینے کی برسیاں"
+ empty: "اِس مہینے کوئی بھی صارف اپنی برسی نہیں منا رہا۔"
+ upcoming:
+ title: "%{start_date}- %{end_date} کی برسیاں"
+ empty: "اگلے 7 دنوں میں کوئی بھی صارف اپنی برسی نہیں منا رہا۔"
+ today:
+ title: "%{date} کی برسیاں"
+ empty: "آج کوئی بھی صارف اپنی برسی نہیں منا رہا۔"
+ tomorrow:
+ empty: "کل کوئی بھی صارف اپنی برسی نہیں منا رہا۔"
diff --git a/plugins/discourse-cakeday/config/locales/client.vi.yml b/plugins/discourse-cakeday/config/locales/client.vi.yml
new file mode 100644
index 00000000000..d4c6ae10940
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.vi.yml
@@ -0,0 +1,26 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+vi:
+ js:
+ user:
+ date_of_birth:
+ user_title: "Hôm nay là sinh nhật của bạn! "
+ title: "Hôm nay là sinh nhật của tôi!"
+ label: "Ngày sinh nhật"
+ anniversary:
+ user_title: "Hôm nay là ngày kỷ niệm bạn gia nhập cộng đồng của chúng tôi!"
+ title: "Hôm nay là ngày kỷ niệm tôi gia nhập cộng đồng này!"
+ cakeday:
+ today: "Hôm nay"
+ tomorrow: "Ngày mai"
+ upcoming: "Sắp tới"
+ all: "Tất cả"
+ birthdays:
+ title: "Sinh nhật"
+ month:
+ title: "Sinh nhật trong tháng của"
+ empty: "Không có thành viên nào có sinh nhật tháng này."
diff --git a/plugins/discourse-cakeday/config/locales/client.zh_CN.yml b/plugins/discourse-cakeday/config/locales/client.zh_CN.yml
new file mode 100644
index 00000000000..37e7db30354
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.zh_CN.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+zh_CN:
+ js:
+ user:
+ date_of_birth:
+ user_title: "今天是您的生日!"
+ title: "今天是我的生日!"
+ label: "出生日期"
+ anniversary:
+ user_title: "今天是您加入我们社区的纪念日!"
+ title: "今天是我加入此社区的纪念日!"
+ cakeday:
+ title: 纪念日
+ today: "今天"
+ tomorrow: "明天"
+ upcoming: "即将到来"
+ all: "所有"
+ birthdays:
+ title: "生日"
+ month:
+ title: "生日月份"
+ empty: "本月没有用户过生日。"
+ upcoming:
+ title: "%{start_date} - %{end_date}的生日"
+ empty: "接下来 7 天没有用户过生日。"
+ today:
+ title: "%{date}的生日"
+ empty: "今天没有用户过生日。"
+ tomorrow:
+ empty: "明天没有用户过生日。"
+ anniversaries:
+ title: "周年纪念日"
+ month:
+ title: "周年纪念日月份"
+ empty: "本月没有用户庆祝周年纪念日。"
+ upcoming:
+ title: "%{start_date} - %{end_date}的周年纪念日"
+ empty: "接下来 7 天没有用户庆祝周年纪念日。"
+ today:
+ title: "%{date}的周年纪念日"
+ empty: "今天没有用户庆祝周年纪念日。"
+ tomorrow:
+ empty: "明天没有用户庆祝周年纪念日。"
diff --git a/plugins/discourse-cakeday/config/locales/client.zh_TW.yml b/plugins/discourse-cakeday/config/locales/client.zh_TW.yml
new file mode 100644
index 00000000000..6f73bafa774
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/client.zh_TW.yml
@@ -0,0 +1,48 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+zh_TW:
+ js:
+ user:
+ date_of_birth:
+ user_title: "今天是您的生日!"
+ title: "今天是我的生日!"
+ label: "生日"
+ anniversary:
+ user_title: "今天是您加入社群的週年紀念日!"
+ title: "今天是我加入社群的週年紀念日!"
+ cakeday:
+ title: Cakeday
+ today: "今天"
+ tomorrow: "明天"
+ upcoming: "即將到來"
+ all: "全部"
+ birthdays:
+ title: "生日"
+ month:
+ title: "生日在"
+ empty: "沒有使用者在這個月慶祝他們的生日。"
+ upcoming:
+ title: "生日是 %{start_date} - %{end_date}"
+ empty: "沒有使用者在未來 7 天慶祝他們的生日。"
+ today:
+ title: "生日是 %{date}"
+ empty: "沒有使用者在今天慶祝他們的生日。"
+ tomorrow:
+ empty: "沒有使用者在明天慶祝他們的生日。"
+ anniversaries:
+ title: "週年紀念日"
+ month:
+ title: "週年紀念日是"
+ empty: "沒有使用者在這個月慶祝他們的週年紀念日。"
+ upcoming:
+ title: "週年紀念日是 %{start_date} - %{end_date}"
+ empty: "沒有使用者在未來 7 天慶祝他們的週年紀念日。"
+ today:
+ title: "週年紀念日是 %{date}"
+ empty: "沒有使用者在今天慶祝他們的週年紀念日。"
+ tomorrow:
+ empty: "沒有使用者在明天慶祝他們的週年紀念日。"
diff --git a/plugins/discourse-cakeday/config/locales/server.ar.yml b/plugins/discourse-cakeday/config/locales/server.ar.yml
new file mode 100644
index 00000000000..6a0d765dc2e
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.ar.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ar:
+ site_settings:
+ cakeday_enabled: "عرض رمز/رموز الكعكة التعبيرية بجانب اسم المستخدم في التاريخ الذي انضم فيه إلى Discourse."
+ cakeday_emoji: "سيتم عرض الرمز/الرموز التعبيرية بجانب اسم المستخدم في التاريخ الذي انضم فيه إلى Discourse. يمكن تخصيص عدة رموز تعبيرية عن طريق كتابة: smile|cake|smile"
+ cakeday_birthday_enabled: "عرض الرمز/الرموز التعبيرية لعيد الميلاد بجانب اسم المستخدم في عيد ميلاده"
+ cakeday_birthday_emoji: "سيتم عرض الرمز/الرموز التعبيرية بجانب اسم المستخدم في عيد ميلاده. يمكن تخصيص عدة رموز تعبيرية عن طريق كتابة: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.be.yml b/plugins/discourse-cakeday/config/locales/server.be.yml
new file mode 100644
index 00000000000..2ea77a0d350
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.be.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+be:
diff --git a/plugins/discourse-cakeday/config/locales/server.bg.yml b/plugins/discourse-cakeday/config/locales/server.bg.yml
new file mode 100644
index 00000000000..52333529d3c
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.bg.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+bg:
diff --git a/plugins/discourse-cakeday/config/locales/server.bs_BA.yml b/plugins/discourse-cakeday/config/locales/server.bs_BA.yml
new file mode 100644
index 00000000000..828a7e65af8
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.bs_BA.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+bs_BA:
diff --git a/plugins/discourse-cakeday/config/locales/server.ca.yml b/plugins/discourse-cakeday/config/locales/server.ca.yml
new file mode 100644
index 00000000000..78ce4c54cfa
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.ca.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ca:
+ site_settings:
+ cakeday_enabled: "Mostra els emojis de pastís (cakeday) al costat del nom de l'usuari en la data en què es van unir a Discourse."
+ cakeday_emoji: "L'emoji o emojis que es mostraran al costat del nom de l'usuari en la data en què es van unir a Discourse. Es poden especificar múltiples emojis: smile|cake|smile"
+ cakeday_birthday_enabled: "Mostra els emojis al costat del nom de l'usuari el seu natalici."
+ cakeday_birthday_emoji: "L'emoji o emojis que es mostraran al costat del nom de l'usuari en el seu natalici. Es poden especificar múltiples emojis: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.cs.yml b/plugins/discourse-cakeday/config/locales/server.cs.yml
new file mode 100644
index 00000000000..cfc22eb244b
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.cs.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+cs:
+ site_settings:
+ cakeday_enabled: "Zobrazit emoji vedle uživatelského jména v den, kdy se připojili k Discourse."
+ cakeday_emoji: "Emoji, které bude zobrazeno vedle uživatelského jména v den, kdy se připojili k Discourse. Více emoji lze nastavit pomocí: smile|cake|smile"
+ cakeday_birthday_enabled: "Zobrazit narozeninové emoji vedle uživatelského jména v den jejich narozenin."
+ cakeday_birthday_emoji: "Emoji, které bude zobrazeno vedle uživatelského jména v den jejich narozenin. Více emoji může být nastaveno pomocí: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.da.yml b/plugins/discourse-cakeday/config/locales/server.da.yml
new file mode 100644
index 00000000000..037a08b76ac
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.da.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+da:
+ site_settings:
+ cakeday_enabled: "Vis cakeday humørikon[er] ved siden af navnet på brugeren, på den dato, hvor de blev medlem af Discourse."
+ cakeday_emoji: "De humørikon[er], der vises ved siden af navnet på brugeren, på den dato, hvor de blev medlem af Discourse. Flere humørikoner kan specificeres ved: smile|cake|smile"
+ cakeday_birthday_enabled: "Vis fødselsdags humørikon[er] ved siden af navnet på brugeren, på deres fødselsdag."
+ cakeday_birthday_emoji: "De humørikon[er], der vises ved siden af navnet på brugeren, på deres fødselsdag. Flere humørikoner kan specificeres ved: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.de.yml b/plugins/discourse-cakeday/config/locales/server.de.yml
new file mode 100644
index 00000000000..5261d428753
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.de.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+de:
+ site_settings:
+ cakeday_enabled: "Zeige Jahrestag-Emojis neben Benutzernamen an dem Tag, an dem die Benutzer Discourse beigetreten sind."
+ cakeday_emoji: "Die Emojis, die neben Benutzernamen an dem Tag angezeigt werden, an dem die Benutzer Discourse beigetreten sind. Die Angabe mehrerer Emojis ist möglich: smile|cake|smile"
+ cakeday_birthday_enabled: "Zeige Geburtstag-Emojis neben Benutzernamen am Geburtstag der Benutzer."
+ cakeday_birthday_emoji: "Die Emojis, die neben Benutzernamen am Geburtstag der Benutzer angezeigt werden. Die Angabe mehrerer Emojis ist möglich: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.el.yml b/plugins/discourse-cakeday/config/locales/server.el.yml
new file mode 100644
index 00000000000..c45202eb66f
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.el.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+el:
+ site_settings:
+ cakeday_enabled: "Εμφάνιση emoji[s] δίπλα στο όνομα του χρήστη την ημερομηνία που ξεκίνησε να συμμετέχει στο Discourse"
+ cakeday_emoji: "Το/τα emoji[s] που θα εμφανίζονται δίπλα στο όνομα του χρήστη την ημερομηνία που ξεκίνησε να συμμετέχει στο Discourse. Μπορείτε να προσδιορίσετε πολλαπλά emojis με: smile|cake|smile"
+ cakeday_birthday_enabled: "Εμφάνιση emoji[s] δίπλα στο όνομα του χρήστη στα γενέθλιά του"
+ cakeday_birthday_emoji: "Το/τα emoji[s] που θα εμφανίζονται δίπλα στο όνομα του χρήστη στα γενέθλιά του. Μπορείτε να προσδιορίσετε πολλαπλά emojis με: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.en.yml b/plugins/discourse-cakeday/config/locales/server.en.yml
new file mode 100644
index 00000000000..fc5dc7b22dd
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.en.yml
@@ -0,0 +1,6 @@
+en:
+ site_settings:
+ cakeday_enabled: "Show cakeday emoji[s] beside the user's name on the date they joined Discourse."
+ cakeday_emoji: "The emoji[s] that will be shown beside the user's name on the date that they joined Discourse. Multiple emojis can be specified by: smile|cake|smile"
+ cakeday_birthday_enabled: "Show birthday emoji[s] beside the user's name on their birthday."
+ cakeday_birthday_emoji: "The emoji[s] that will be shown beside the user's name on their birthday. Multiple emojis can be specified by: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.en_GB.yml b/plugins/discourse-cakeday/config/locales/server.en_GB.yml
new file mode 100644
index 00000000000..2d4fa180ec7
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.en_GB.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+en_GB:
diff --git a/plugins/discourse-cakeday/config/locales/server.es.yml b/plugins/discourse-cakeday/config/locales/server.es.yml
new file mode 100644
index 00000000000..501b6157840
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.es.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+es:
+ site_settings:
+ cakeday_enabled: "Mostrar emoji[s] del día de tarta junto al nombre del usuario en la fecha en que se unió a Discourse."
+ cakeday_emoji: "Los emojis que se mostrarán junto al nombre del usuario en la fecha en que se unió a Discourse. Se pueden especificar varios emojis: smile|cake|smile"
+ cakeday_birthday_enabled: "Mostrar emoji[s] de cumpleaños junto al nombre del usuario en su cumpleaños."
+ cakeday_birthday_emoji: "Los emojis que se mostrarán junto al nombre del usuario en su cumpleaños. Se pueden especificar varios emojis: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.et.yml b/plugins/discourse-cakeday/config/locales/server.et.yml
new file mode 100644
index 00000000000..0ea0b6d554b
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.et.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+et:
diff --git a/plugins/discourse-cakeday/config/locales/server.fa.yml b/plugins/discourse-cakeday/config/locales/server.fa.yml
new file mode 100644
index 00000000000..4f9362c746b
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.fa.yml
@@ -0,0 +1,13 @@
+# encoding: utf-8
+#
+# Never edit this file. It will be overwritten when translations are pulled from Transifex.
+#
+# To work with us on translations, join this project:
+# https://www.transifex.com/projects/p/discourse-org/
+
+fa:
+ site_settings:
+ cakeday_enabled: "در روزی که کاربر به فروم پیوسته اسمایلی کیک تولد را کنار نام کاربری او نمایش بده."
+ cakeday_emoji: "اسمایلی که در کنار نام کاربری نمایش داده شود. چندین اسمایلی را میتوان به صورت زیر مشخص کرد: smile|cake|smile"
+ cakeday_birthday_enabled: "اسمایلی روز تولد را در روز تولد کاربر کنار نام کاربری او نمایش بده."
+ cakeday_birthday_emoji: "اسمایلی که در کنار نام کاربری نمایش داده شود. چندین اسمایلی را میتوان به صورت زیر مشخص کرد: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.fa_IR.yml b/plugins/discourse-cakeday/config/locales/server.fa_IR.yml
new file mode 100644
index 00000000000..56512089fb5
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.fa_IR.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+fa_IR:
diff --git a/plugins/discourse-cakeday/config/locales/server.fi.yml b/plugins/discourse-cakeday/config/locales/server.fi.yml
new file mode 100644
index 00000000000..0daee9d1f4a
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.fi.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+fi:
+ site_settings:
+ cakeday_enabled: "Näytä vuosipäiväemoji[t] nimen vieressä Discourseen liittymisen vuosipäivänä."
+ cakeday_emoji: "Emojit, jotka näytetään käyttäjän nimen vieressä päivänä, jolloin he liittyivät Discourseen. Useampia emojeita voi määrittää näin: smile|cake|smile"
+ cakeday_birthday_enabled: "Näytä syntymäpäiväemoji[t] nimen vieressä syntymäpäivänä."
+ cakeday_birthday_emoji: "Emojit, jotka näytetään käyttäjän nimen vieressä heidän syntymäpäivänään. Useampia emojeita voi määrittää näin: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.fr.yml b/plugins/discourse-cakeday/config/locales/server.fr.yml
new file mode 100644
index 00000000000..cd8351cb802
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.fr.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+fr:
+ site_settings:
+ cakeday_enabled: "Afficher un ou plusieurs émojis de célébration à côté du nom de l'utilisateur à la date d'anniversaire de son adhésion à Discourse."
+ cakeday_emoji: "L'émoji ou les émojis qui seront affichés à côté du nom de l'utilisateur à la date d'anniversaire de son adhésion à Discourse. Plusieurs émojis peuvent être définis : sourire|gâteau|sourire"
+ cakeday_birthday_enabled: "Afficher un ou des émojis à côté du nom de l'utilisateur le jour de son anniversaire."
+ cakeday_birthday_emoji: "L'émoji ou les émojis qui seront affichés à côté du nom de l'utilisateur le jour de son anniversaire. Plusieurs émojis peuvent être définis : sourire|gâteau|sourire"
diff --git a/plugins/discourse-cakeday/config/locales/server.gl.yml b/plugins/discourse-cakeday/config/locales/server.gl.yml
new file mode 100644
index 00000000000..fb911ce1635
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.gl.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+gl:
diff --git a/plugins/discourse-cakeday/config/locales/server.he.yml b/plugins/discourse-cakeday/config/locales/server.he.yml
new file mode 100644
index 00000000000..93ff30ade71
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.he.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+he:
+ site_settings:
+ cakeday_enabled: "הצגת אימוג׳י לציון יום עוגה ליד שם המשתמש בתאריך ההצטרפות ל־Discourse."
+ cakeday_emoji: "סוג/י האימוג׳י שיופיעו ליד שם המשתמש בתאריך ההצטרפות ל־Discourse. ניתן לציין מספר סימנים באופן הבא: smile|cake|smile"
+ cakeday_birthday_enabled: "הצגת אימוג׳י לציון יום הולדת ליד שם המשתמש בתאריך יום ההולדת."
+ cakeday_birthday_emoji: "סוג/י האימוג׳י שיופיעו ליד שם המשתמש בתאריך יום ההולדת. ניתן לציין מספר סימנים באופן הבא: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.hr.yml b/plugins/discourse-cakeday/config/locales/server.hr.yml
new file mode 100644
index 00000000000..7d3ebf2eb47
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.hr.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+hr:
+ site_settings:
+ cakeday_enabled: "Prikažite emoji godišnjice učlanjenja pored imena korisnika na dan kada su se učlanili na Discourse."
+ cakeday_emoji: "Emoji koji će biti prikazan pored imena korisnika na godišnjicu njihovog učlanjenja na Discourse. Višestruki emojiji mogu se specificirati koristeći: \"smile|cake|smile\""
+ cakeday_birthday_enabled: "Prikažite rođendanski emoji pored imena korisnika na njihov rođendan"
+ cakeday_birthday_emoji: "Emoji koji će biti prikazan pored imena korisnika na njihov rođendan. Višestruki emojiji mogu se specificirati koristeći: \"smile|cake|smile\""
diff --git a/plugins/discourse-cakeday/config/locales/server.hu.yml b/plugins/discourse-cakeday/config/locales/server.hu.yml
new file mode 100644
index 00000000000..dc2fd5d497f
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.hu.yml
@@ -0,0 +1,9 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+hu:
+ site_settings:
+ cakeday_enabled: "A tortanap emoji[s] megjelenítése a felhasználó neve mellett azon a napon, amikor csatlakoztak a Discourse-hoz."
diff --git a/plugins/discourse-cakeday/config/locales/server.hy.yml b/plugins/discourse-cakeday/config/locales/server.hy.yml
new file mode 100644
index 00000000000..818050602b4
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.hy.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+hy:
+ site_settings:
+ cakeday_enabled: "Ցուցադրել տորթի օրվա էմոջի[ներ] օգտատիրոջ անվան կողքին Discourse-ին նրանց միանալու օրը:"
+ cakeday_emoji: "Էմոջի[ներ], որոնք կցուցադրվեն օգտատիրոջ անվան կողքին Discourse-Ին նրանց միանալու օրը: Բազմակի էմոջիները կարող են որոշվել՝ smile|cake|smile"
+ cakeday_birthday_enabled: "Ցուցադրել ծննդյան էմոջի[ներ] օգտատիրոջ անվան կողքին նրանց ծննդյան օրը:"
+ cakeday_birthday_emoji: "Էմոջի[ներ], որոնք կցուցադրվեն օգտատիրոջ անվան կողքին իրենց ծննդյան օրը: Բազմակի էմոջիները կարող են որոշվել՝ smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.id.yml b/plugins/discourse-cakeday/config/locales/server.id.yml
new file mode 100644
index 00000000000..596e36b2e13
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.id.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+id:
diff --git a/plugins/discourse-cakeday/config/locales/server.it.yml b/plugins/discourse-cakeday/config/locales/server.it.yml
new file mode 100644
index 00000000000..476b331384b
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.it.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+it:
+ site_settings:
+ cakeday_enabled: "Mostra le emoji della torta accanto al nome dell'utente nel giorno in cui si sono iscritti su Discourse."
+ cakeday_emoji: "Le emoji che verranno mostrate accanto al nome dell'utente nella data in cui si sono iscritti a Discourse. Si possono indicare emoji multiple così: smile|cake|smile"
+ cakeday_birthday_enabled: "Mostra le emoji del compleanno accanto al nome dell'utente il giorno del compleanno."
+ cakeday_birthday_emoji: "Le emoji che verranno mostrate accanto al nome dell'utente il giorno del suo compleanno. Si possono indicare emoji multiple così: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.ja.yml b/plugins/discourse-cakeday/config/locales/server.ja.yml
new file mode 100644
index 00000000000..6b343314ae4
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.ja.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ja:
+ site_settings:
+ cakeday_enabled: "Discourse に参加した日に、ケーキデイの絵文字をユーザーの名前の横に表示します。"
+ cakeday_emoji: "Discourse に参加した日に、ユーザーの名前の横に表示される絵文字[s]。複数の絵文字を、smile|cake|smile のように指定できます。"
+ cakeday_birthday_enabled: "誕生日にユーザーの名前の横に誕生日の絵文字[s]を表示します。"
+ cakeday_birthday_emoji: "誕生日にユーザーの名前の横に表示される絵文字[s]。複数の絵文字を、smile|cake|smile のように指定できます。"
diff --git a/plugins/discourse-cakeday/config/locales/server.ko.yml b/plugins/discourse-cakeday/config/locales/server.ko.yml
new file mode 100644
index 00000000000..5f40ed0b4c7
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.ko.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ko:
+ site_settings:
+ cakeday_enabled: "사용자가 담론에 참여한 날짜에 사용자 이름 옆에 케이크 데이 이모지를 표시합니다."
+ cakeday_emoji: "사용자가 Discourse에 가입 한 날짜에 사용자 이름 옆에 표시되는 그림 이모티콘. 여러 이모티콘을 지정할 수 있습니다 : smile | cake | smile"
+ cakeday_birthday_enabled: "생일에 사용자 이름 옆에 생일 그림 이모티콘을 표시합니다."
+ cakeday_birthday_emoji: "생일에 사용자 이름 옆에 표시되는 그림 이모티콘. 여러 이모티콘을 지정할 수 있습니다 : smile | cake | smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.lt.yml b/plugins/discourse-cakeday/config/locales/server.lt.yml
new file mode 100644
index 00000000000..16bb19758dc
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.lt.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+lt:
diff --git a/plugins/discourse-cakeday/config/locales/server.lv.yml b/plugins/discourse-cakeday/config/locales/server.lv.yml
new file mode 100644
index 00000000000..59e0ef6f4ed
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.lv.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+lv:
diff --git a/plugins/discourse-cakeday/config/locales/server.nb_NO.yml b/plugins/discourse-cakeday/config/locales/server.nb_NO.yml
new file mode 100644
index 00000000000..d66340c9979
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.nb_NO.yml
@@ -0,0 +1,9 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+nb_NO:
+ site_settings:
+ cakeday_enabled: "Vis bursdagskake-emoji ved siden av brukerens navn på datoen de registrerte seg hos Discourse!"
diff --git a/plugins/discourse-cakeday/config/locales/server.nl.yml b/plugins/discourse-cakeday/config/locales/server.nl.yml
new file mode 100644
index 00000000000..c52002049e7
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.nl.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+nl:
+ site_settings:
+ cakeday_enabled: "Toon taartdagemoji['s] naast de naam van de gebruiker op de datum waarop deze lid is geworden van Discourse."
+ cakeday_emoji: "De weergegeven emoji['s] naast de naam van de gebruiker op de datum dat deze lid is geworden van Discourse. Meerdere emoji's kunnen als volgt worden opgegeven: smile|cake|smile"
+ cakeday_birthday_enabled: "Toon verjaardagsemoji['s] naast de naam van de gebruiker op diens verjaardag."
+ cakeday_birthday_emoji: "De weergegeven emoji['s] naast de naam van de gebruiker op diens verjaardag. Meerdere emoji's kunnen als volgt worden opgegeven: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.pl_PL.yml b/plugins/discourse-cakeday/config/locales/server.pl_PL.yml
new file mode 100644
index 00000000000..e75f66b685a
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.pl_PL.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+pl_PL:
+ site_settings:
+ cakeday_enabled: "Pokazuj emoji urodzin przy nazwie użytkownika w dniu rocznicy dołączenia do społeczności."
+ cakeday_emoji: "Emoji będą pokazane przy nazwie użytkownika w dniu rocznicy dołączenia do społeczności. Definiuj nowe emoji wg wzoru: smile|cake|smile"
+ cakeday_birthday_enabled: "Pokazuj urodzinowe emoji przy nazwie użytkownika w dniu ich urodzin."
+ cakeday_birthday_emoji: "Emoji będą pokazane przy nazwie użytkownika w dniu ich urodzin. Definiuj nowe emoji wg wzoru: smile|cake|smile "
diff --git a/plugins/discourse-cakeday/config/locales/server.pt.yml b/plugins/discourse-cakeday/config/locales/server.pt.yml
new file mode 100644
index 00000000000..8c86bc98d25
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.pt.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+pt:
+ site_settings:
+ cakeday_enabled: "Mostrar emojis de bolo de aniversário junto do nome do utilizador na data de registo no site."
+ cakeday_emoji: "Os emojis que serão mostrados junto do nome do utilizador. Múltiplos emojis podem ser especificados com: smile!cake|smile"
+ cakeday_birthday_enabled: "Mostrar emojis de aniversário junto do nome do utilizador no dia de aniversário."
+ cakeday_birthday_emoji: "Os emojis que serão mostrados junto do nome do utilizador. Múltiplos emojis podem ser especificados com: smile!cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.pt_BR.yml b/plugins/discourse-cakeday/config/locales/server.pt_BR.yml
new file mode 100644
index 00000000000..59939c51563
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.pt_BR.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+pt_BR:
+ site_settings:
+ cakeday_enabled: "Mostrar emoji(s) do dia de bolo ao lado do nome do(a) usuário(a) na data em que se registrou no Discourse."
+ cakeday_emoji: "O(s) emoji(s) que serão mostrados ao lado do nome do(a) usuário na data em que se registrou no Discourse. Vários emojis podem ser especificados por: smile|cake|smile"
+ cakeday_birthday_enabled: "Mostrar emoji(s) de aniversário ao lado do nome do(a) usuário(a) na sua data aniversário."
+ cakeday_birthday_emoji: "O(s) emoji(s) que serão mostrados ao lado do nome do(a) usuário(a) na sua data de aniversário. Vários emojis podem ser especificados por: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.ro.yml b/plugins/discourse-cakeday/config/locales/server.ro.yml
new file mode 100644
index 00000000000..60fde672f21
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.ro.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ro:
+ site_settings:
+ cakeday_enabled: "Arată emoji(uri) cakeday lângă numele utilizatorului la data în care s-a înscris în comunitate."
+ cakeday_emoji: "Emoji[s] care se vor afișa lângă numele utilizatorului la data la care s-a alăturat comunității. Mai multe emojiuri pot fi specificate prin: smile|cake| smile"
+ cakeday_birthday_enabled: "Afișează emoji(uri) pentru ziua de naștere alături de numele utilizatorului în ziua acestuia."
+ cakeday_birthday_emoji: "Emoji-uri, care vor fi afișate lângă numele utilizatorului în ziua lui de naștere. Se pot specifica mai multe emoji-uri folosind: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.ru.yml b/plugins/discourse-cakeday/config/locales/server.ru.yml
new file mode 100644
index 00000000000..a45ed0a4976
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.ru.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ru:
+ site_settings:
+ cakeday_enabled: "Показывать cakeday-эмодзи напротив имени пользователя в годовщину регистрации на форуме."
+ cakeday_emoji: "Показывать эти эмодзи напротив имени пользователя в годовщину регистрации на форуме. Можно указать несколько эмодзи сразу, например: smile|cake|smile"
+ cakeday_birthday_enabled: "Показывать поздравительные эмодзи напротив имени пользователя в его день рождения."
+ cakeday_birthday_emoji: "Показывать эти эмодзи напротив имени пользователя в его день рождения. Можно указать несколько эмодзи сразу, например: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.sk.yml b/plugins/discourse-cakeday/config/locales/server.sk.yml
new file mode 100644
index 00000000000..6f815624081
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.sk.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sk:
diff --git a/plugins/discourse-cakeday/config/locales/server.sl.yml b/plugins/discourse-cakeday/config/locales/server.sl.yml
new file mode 100644
index 00000000000..c3df33be1cd
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.sl.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sl:
+ site_settings:
+ cakeday_enabled: "Pokaži praznični emoji ob imenu uporabnice/ka na dan, ko so se pridružili Discoursu."
+ cakeday_emoji: "Emoji(ji), ki bo(do) prikazan(i) poleg uporabnikovega imena na dan, ko se je pridružil Discoursu. Več emojijev lahko določite z: smile|cake|smile"
+ cakeday_birthday_enabled: "Pokaži praznični emoji ob imenu uporabnice/ka na njihov rojstni dan."
+ cakeday_birthday_emoji: "Emoji(ji), ki bo(do) prikazan(i) poleg uporabnikovega imena na njihov rojstni dan. Več emojijev lahko določite z: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.sq.yml b/plugins/discourse-cakeday/config/locales/server.sq.yml
new file mode 100644
index 00000000000..7f051b7a7cf
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.sq.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sq:
diff --git a/plugins/discourse-cakeday/config/locales/server.sr.yml b/plugins/discourse-cakeday/config/locales/server.sr.yml
new file mode 100644
index 00000000000..88d63d6ae1a
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.sr.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sr:
diff --git a/plugins/discourse-cakeday/config/locales/server.sv.yml b/plugins/discourse-cakeday/config/locales/server.sv.yml
new file mode 100644
index 00000000000..d0884706938
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.sv.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sv:
+ site_settings:
+ cakeday_enabled: "Visa tårtdagsemoji/-emojier bredvid användarens namn på det datum då de anslöt sig till Discourse."
+ cakeday_emoji: "Emojin/emojierna som kommer att visas bredvid användarens namn på det datum då de anslöt sig till Discourse. Flera emojier kan anges genom: smile|cake|smile"
+ cakeday_birthday_enabled: "Visa födelsedagsemoji/-emojier bredvid användarens namn på deras födelsedag."
+ cakeday_birthday_emoji: "Emojin/emojierna som kommer att visas bredvid användarens namn på födelsedagen. Flera emojier kan anges genom: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.sw.yml b/plugins/discourse-cakeday/config/locales/server.sw.yml
new file mode 100644
index 00000000000..55470b16300
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.sw.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+sw:
+ site_settings:
+ cakeday_enabled: "Onyesha alama y[z]a keki pembeni ya jina la mtumiaji siku aliyojiunga Discourse."
+ cakeday_emoji: "Ishara za vitendo [z]itaonyeshwa pembeni ya jina la mtumiaji siku aliyojiunga Discourse. Ishara nyingi zinaweza kuchaguliwa na: smile|cake|smile"
+ cakeday_birthday_enabled: "Onyesha ishara ya siku y[z]a kuzaliwa pembeni ya jina la mtumiaji siku zao za kuzaliwa."
+ cakeday_birthday_emoji: "Ishara za vitendo [z]itaonyeshwa pembeni ya jina la mtumiaji siku aliyojiunga Discourse. Ishara nyingi zinaweza kuchaguliwa na: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.te.yml b/plugins/discourse-cakeday/config/locales/server.te.yml
new file mode 100644
index 00000000000..03967bdbb07
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.te.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+te:
diff --git a/plugins/discourse-cakeday/config/locales/server.th.yml b/plugins/discourse-cakeday/config/locales/server.th.yml
new file mode 100644
index 00000000000..7de85ff91c4
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.th.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+th:
diff --git a/plugins/discourse-cakeday/config/locales/server.tr_TR.yml b/plugins/discourse-cakeday/config/locales/server.tr_TR.yml
new file mode 100644
index 00000000000..00d576fbaca
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.tr_TR.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+tr_TR:
+ site_settings:
+ cakeday_enabled: "Discourse'a katıldıkları tarihte kullanıcının adının yanında pasta günü emoji'si göster."
+ cakeday_emoji: "Discourse'a katıldıkları tarihte kullanıcının adının yanında gösterilecek emoji'ler. Birden fazla emoji şu şekilde belirtilebilir: gülümseme|pasta|gülümseme"
+ cakeday_birthday_enabled: "Doğum gününde kullanıcının adının yanında doğum günü emoji'lerini göster."
+ cakeday_birthday_emoji: "Doğum gününde kullanıcının adının yanında gösterilecek emoji'ler. Birden fazla emoji şu şekilde belirtilebilir: gülümseme|pasta|gülümseme"
diff --git a/plugins/discourse-cakeday/config/locales/server.ug.yml b/plugins/discourse-cakeday/config/locales/server.ug.yml
new file mode 100644
index 00000000000..a6bf0185ae2
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.ug.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ug:
diff --git a/plugins/discourse-cakeday/config/locales/server.uk.yml b/plugins/discourse-cakeday/config/locales/server.uk.yml
new file mode 100644
index 00000000000..b3c84b12256
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.uk.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+uk:
+ site_settings:
+ cakeday_enabled: "Показуйте emoji[s] 'cakeday' :cakeday: поруч із іменем користувача в день, коли він приєднався до дискурсу."
+ cakeday_emoji: "Emoji[s], які відображатимуться біля імені користувача в день, коли він приєднався до дискурсу. Кілька емоцій можна задати за :smile|cake|smile"
+ cakeday_birthday_enabled: "Показуйте іконку emoji[s] поруч із іменем користувача в день народження."
+ cakeday_birthday_emoji: "Emoji[s], які відображатимуться біля імені користувача в день народження. Кілька емоцій можна задати одночасно: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.ur.yml b/plugins/discourse-cakeday/config/locales/server.ur.yml
new file mode 100644
index 00000000000..6227b2d2b48
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.ur.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+ur:
+ site_settings:
+ cakeday_enabled: "جس تاریخ کو صارف نے ڈسکورس میں شمولیت اختیار کی، اُس دن ان کے نام کے ساتھ کیک ڈے ایموجی[ز] دکھائیں۔"
+ cakeday_emoji: "ایموجی[ز] جو صارف نام کے ساتھ دکھائے جائیں گے جس تاریخ کو انہوں نے ڈسکورس میں شمولیت اختیار کی۔ ایک سے زیادہ ایموجی اِس طرح متعینہ کیے جا سکتے ہیں: smile|cake|smile"
+ cakeday_birthday_enabled: "صارف کے نام کے ساتھ اُن کی سالگرہ پر سالگرہ ایموجی[ز] دکھائیں۔"
+ cakeday_birthday_emoji: "ایموجی[ز] جو صارف نام کے ساتھ اُن کی سالگرہ پر دکھائے جائیں گے۔ ایک سے زیادہ ایموجی اِس طرح متعینہ کیے جا سکتے ہیں: smile|cake|smile"
diff --git a/plugins/discourse-cakeday/config/locales/server.vi.yml b/plugins/discourse-cakeday/config/locales/server.vi.yml
new file mode 100644
index 00000000000..f629dcf5329
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.vi.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+vi:
diff --git a/plugins/discourse-cakeday/config/locales/server.zh_CN.yml b/plugins/discourse-cakeday/config/locales/server.zh_CN.yml
new file mode 100644
index 00000000000..e375659c19b
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.zh_CN.yml
@@ -0,0 +1,12 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+zh_CN:
+ site_settings:
+ cakeday_enabled: "在用户加入 Discourse 的日期于用户名旁显示纪念日表情符号。"
+ cakeday_emoji: "将在用户加入 Discourse 的日期于用户名称旁显示的表情符号。可以通过 smile|cake|smile 指定多个表情符号"
+ cakeday_birthday_enabled: "在用户生日当天于用户名称旁显示生日表情符号。"
+ cakeday_birthday_emoji: "将在用户生日于用户名称旁显示的表情符号。可以通过 smile|cake|smile 指定多个表情符号"
diff --git a/plugins/discourse-cakeday/config/locales/server.zh_TW.yml b/plugins/discourse-cakeday/config/locales/server.zh_TW.yml
new file mode 100644
index 00000000000..7e15fab0018
--- /dev/null
+++ b/plugins/discourse-cakeday/config/locales/server.zh_TW.yml
@@ -0,0 +1,7 @@
+# WARNING: Never edit this file.
+# It will be overwritten when translations are pulled from Crowdin.
+#
+# To work with us on translations, join this project:
+# https://translate.discourse.org/
+
+zh_TW:
diff --git a/plugins/discourse-cakeday/config/settings.yml b/plugins/discourse-cakeday/config/settings.yml
new file mode 100644
index 00000000000..688cc0e5fa3
--- /dev/null
+++ b/plugins/discourse-cakeday/config/settings.yml
@@ -0,0 +1,13 @@
+plugins:
+ cakeday_enabled:
+ default: true
+ client: true
+ cakeday_emoji:
+ default: 'cake'
+ client: true
+ cakeday_birthday_enabled:
+ default: true
+ client: true
+ cakeday_birthday_emoji:
+ default: 'birthday'
+ client: true
diff --git a/plugins/discourse-cakeday/db/migrate/20250717093505_persist_cakeday_enabled.rb b/plugins/discourse-cakeday/db/migrate/20250717093505_persist_cakeday_enabled.rb
new file mode 100644
index 00000000000..f5bfb6194fd
--- /dev/null
+++ b/plugins/discourse-cakeday/db/migrate/20250717093505_persist_cakeday_enabled.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+# TODO: Comment this migration out when merging the plugin into core
+class PersistCakedayEnabled < ActiveRecord::Migration[7.2]
+ def up
+ # 5 is bool data_type
+ DB.exec(<<~SQL, value: SiteSetting.cakeday_enabled ? "t" : "f")
+ INSERT INTO site_settings(name, data_type, value, created_at, updated_at)
+ VALUES('cakeday_enabled', 5, :value, NOW(), NOW())
+ ON CONFLICT (name) DO NOTHING
+ SQL
+ end
+
+ def down
+ raise ActiveRecord::IrreversibleMigration
+ end
+end
diff --git a/plugins/discourse-cakeday/db/migrate/20250811132217_persist_cakeday_birthday_enabled.rb b/plugins/discourse-cakeday/db/migrate/20250811132217_persist_cakeday_birthday_enabled.rb
new file mode 100644
index 00000000000..7323bf3013b
--- /dev/null
+++ b/plugins/discourse-cakeday/db/migrate/20250811132217_persist_cakeday_birthday_enabled.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+# TODO: Comment this migration out when merging the plugin into core
+class PersistCakedayBirthdayEnabled < ActiveRecord::Migration[8.0]
+ def up
+ # 5 is bool data_type
+ DB.exec(<<~SQL, value: SiteSetting.cakeday_birthday_enabled ? "t" : "f")
+ INSERT INTO site_settings(name, data_type, value, created_at, updated_at)
+ VALUES('cakeday_birthday_enabled', 5, :value, NOW(), NOW())
+ ON CONFLICT (name) DO NOTHING
+ SQL
+ end
+
+ def down
+ raise ActiveRecord::IrreversibleMigration
+ end
+end
diff --git a/plugins/discourse-cakeday/example.png b/plugins/discourse-cakeday/example.png
new file mode 100644
index 00000000000..b7d906fa202
Binary files /dev/null and b/plugins/discourse-cakeday/example.png differ
diff --git a/plugins/discourse-cakeday/example2.png b/plugins/discourse-cakeday/example2.png
new file mode 100644
index 00000000000..3485c4a5211
Binary files /dev/null and b/plugins/discourse-cakeday/example2.png differ
diff --git a/plugins/discourse-cakeday/plugin.rb b/plugins/discourse-cakeday/plugin.rb
new file mode 100644
index 00000000000..b0b1a090306
--- /dev/null
+++ b/plugins/discourse-cakeday/plugin.rb
@@ -0,0 +1,86 @@
+# frozen_string_literal: true
+
+# name: discourse-cakeday
+# about: Show a birthday cake beside the user's name on their birthday and/or on the date they joined Discourse.
+# version: 0.3
+# authors: Alan Tan
+# url: https://github.com/discourse/discourse/tree/main/plugins/discourse-cakeday
+
+register_asset "stylesheets/cakeday.scss"
+register_asset "stylesheets/emoji-images.scss"
+
+register_svg_icon "cake-candles" if respond_to?(:register_svg_icon)
+
+enabled_site_setting :cakeday_enabled
+
+after_initialize do
+ module ::DiscourseCakeday
+ PLUGIN_NAME = "discourse-cakeday"
+
+ class Engine < ::Rails::Engine
+ engine_name PLUGIN_NAME
+ isolate_namespace DiscourseCakeday
+ end
+ end
+
+ ::DiscourseCakeday::Engine.routes.draw do
+ get "birthdays" => "birthdays#index"
+ get "birthdays/:filter" => "birthdays#index"
+ get "anniversaries" => "anniversaries#index"
+ get "anniversaries/:filter" => "anniversaries#index"
+ end
+
+ Discourse::Application.routes.append { mount ::DiscourseCakeday::Engine, at: "/cakeday" }
+
+ require_relative "app/jobs/onceoff/fix_invalid_date_of_birth"
+ require_relative "app/jobs/onceoff/migrate_date_of_birth_to_users_table"
+ require_relative "app/serializers/discourse_cakeday/cakeday_user_serializer"
+ require_relative "app/controllers/discourse_cakeday/cakeday_controller"
+ require_relative "app/controllers/discourse_cakeday/anniversaries_controller"
+ require_relative "app/controllers/discourse_cakeday/birthdays_controller"
+
+ # overwrite the user and user_card serializers to show
+ # the cakes on the user card and on the user profile pages
+ %i[user user_card].each do |serializer|
+ add_to_serializer(
+ serializer,
+ :cakedate,
+ include_condition: -> { scope.user.present? && object.user_option&.hide_profile != true },
+ ) do
+ timezone = scope.user.user_option&.timezone.presence || "UTC"
+ object.created_at.in_time_zone(timezone).strftime("%Y-%m-%d")
+ end
+
+ add_to_serializer(
+ serializer,
+ :birthdate,
+ include_condition: -> do
+ SiteSetting.cakeday_birthday_enabled && scope.user.present? &&
+ object.user_option&.hide_profile != true
+ end,
+ ) { object.date_of_birth }
+ end
+
+ # overwrite the post serializer to show the cakes next to the
+ # username in the posts stream
+ add_to_serializer(
+ :post,
+ :user_cakedate,
+ include_condition: -> do
+ scope.user.present? && object.user&.created_at.present? &&
+ object.user.user_option&.hide_profile != true
+ end,
+ ) do
+ timezone = scope.user.user_option&.timezone.presence || "UTC"
+ object.user.created_at.in_time_zone(timezone).strftime("%Y-%m-%d")
+ end
+
+ add_to_serializer(
+ :post,
+ :user_birthdate,
+ include_condition: -> do
+ SiteSetting.cakeday_birthday_enabled && scope.user.present? &&
+ object.user&.date_of_birth.present? && object.user.user_option&.hide_profile != true
+ end,
+ ) { object.user.date_of_birth }
+end
diff --git a/plugins/discourse-cakeday/spec/integration/cakeday_spec.rb b/plugins/discourse-cakeday/spec/integration/cakeday_spec.rb
new file mode 100644
index 00000000000..64961670767
--- /dev/null
+++ b/plugins/discourse-cakeday/spec/integration/cakeday_spec.rb
@@ -0,0 +1,155 @@
+# frozen_string_literal: true
+
+require "rails_helper"
+
+describe "Anniversaries and Birthdays" do
+ describe "when not logged in" do
+ it "should return the right response" do
+ get "/cakeday/anniversaries.json"
+ expect(response.status).to eq(403)
+ end
+ end
+
+ describe "when logged in" do
+ let(:time) { Time.zone.local(2016, 9, 30) }
+ let(:current_user) { Fabricate(:user, created_at: time - 10.days) }
+
+ before { sign_in(current_user) }
+
+ it "should return 404 when viewing anniversaries and cakeday_enabled is false" do
+ SiteSetting.cakeday_enabled = false
+
+ get "/cakeday/anniversaries.json"
+ expect(response.status).to eq(404)
+ end
+
+ it "should return 404 when viewing birthdays and cakeday_birthday_enabled is false" do
+ SiteSetting.cakeday_birthday_enabled = false
+
+ get "/cakeday/birthdays.json"
+ expect(response.status).to eq(404)
+ end
+
+ describe "when viewing anniversaries" do
+ it "should return the right payload" do
+ freeze_time(time) do
+ created_at = time - 1.year
+
+ user1 = Fabricate(:user, created_at: created_at - 2.year)
+ user2 = Fabricate(:user, created_at: created_at - 1.day)
+ user3 = Fabricate(:user, created_at: created_at)
+ user4 = Fabricate(:user, created_at: created_at + 1.day)
+ user5 = Fabricate(:user, created_at: created_at + 2.day)
+ user6 = Fabricate(:user, created_at: created_at + 1.year)
+
+ hidden_user = Fabricate(:user, created_at: created_at - 1.year)
+ hidden_user.user_option.update!(hide_profile: true)
+
+ get "/cakeday/anniversaries.json", params: { month: time.month }
+
+ body = JSON.parse(response.body)
+ expect(body["anniversaries"].map { |u| u["id"] }).to eq [user2.id, user1.id, user3.id]
+
+ get "/cakeday/anniversaries.json", params: { filter: "today" }
+
+ body = JSON.parse(response.body)
+ expect(body["anniversaries"].map { |u| u["id"] }).to eq [user1.id, user3.id]
+
+ get "/cakeday/anniversaries.json", params: { filter: "tomorrow" }
+
+ body = JSON.parse(response.body)
+ expect(body["anniversaries"].map { |u| u["id"] }).to eq [user4.id]
+
+ get "/cakeday/anniversaries.json", params: { filter: "upcoming" }
+
+ body = JSON.parse(response.body)
+ expect(body["anniversaries"].map { |u| u["id"] }).to eq [user5.id]
+ end
+ end
+
+ it "should account for the current user's timezone" do
+ # Asia/Calcutta is +5.5 hours from UTC
+ current_user.user_option.update!(timezone: "Asia/Calcutta")
+
+ freeze_time(time) do
+ created_at = time - 1.year
+
+ user1 = Fabricate(:user, created_at: created_at + 5.hours)
+ user2 = Fabricate(:user, created_at: created_at + 18.hours + 20.minutes)
+ user3 = Fabricate(:user, created_at: created_at + 18.hours + 40.minutes)
+ user4 = Fabricate(:user, created_at: created_at + 1.day + 2.hours)
+
+ hidden_user = Fabricate(:user, created_at: created_at - 1.year)
+ hidden_user.user_option.update!(hide_profile: true)
+
+ get "/cakeday/anniversaries.json", params: { filter: "today" }
+
+ body = JSON.parse(response.body)
+ expect(body["anniversaries"].map { |u| u["id"] }).to contain_exactly(user1.id, user2.id)
+
+ get "/cakeday/anniversaries.json", params: { filter: "tomorrow" }
+
+ body = JSON.parse(response.body)
+ expect(body["anniversaries"].map { |u| u["id"] }).to contain_exactly(user3.id, user4.id)
+ end
+ end
+ end
+
+ describe "when viewing birthdays" do
+ let(:time) { Time.zone.local(2016, 9, 30) }
+
+ it "should return the right payload" do
+ freeze_time(time) do
+ user1 = Fabricate(:user, date_of_birth: "1904-9-28")
+ user2 = Fabricate(:user, date_of_birth: "1904-9-29")
+ user3 = Fabricate(:user, date_of_birth: "1904-9-30")
+ user4 = Fabricate(:user, date_of_birth: "1904-10-1")
+ user5 = Fabricate(:user, date_of_birth: "1904-10-2")
+
+ get "/cakeday/birthdays.json", params: { month: time.month }
+
+ body = JSON.parse(response.body)
+ expect(body["birthdays"].map { |u| u["id"] }).to eq [user1.id, user2.id, user3.id]
+
+ get "/cakeday/birthdays.json", params: { filter: "today" }
+
+ body = JSON.parse(response.body)
+ expect(body["birthdays"].map { |u| u["id"] }).to eq [user3.id]
+
+ get "/cakeday/birthdays.json", params: { filter: "tomorrow" }
+
+ body = JSON.parse(response.body)
+ expect(body["birthdays"].map { |u| u["id"] }).to eq [user4.id]
+
+ get "/cakeday/birthdays.json", params: { filter: "upcoming" }
+
+ body = JSON.parse(response.body)
+ expect(body["birthdays"].map { |u| u["id"] }).to eq [user5.id]
+ end
+ end
+
+ it "respects the prioritize_username_in_ux site setting" do
+ freeze_time(time) do
+ dob = "1904-9-30"
+ user1 = Fabricate(:user, username: "alpha_zeta", name: "Zeta Alpha", date_of_birth: dob)
+ user2 = Fabricate(:user, username: "zeta_alpha", name: "Alpha Zeta", date_of_birth: dob)
+ user3 = Fabricate(:user, username: "beta_omega", name: "", date_of_birth: dob)
+
+ SiteSetting.prioritize_username_in_ux = true
+
+ get "/cakeday/birthdays.json", params: { filter: "today" }
+
+ body = JSON.parse(response.body)
+ expect(body["birthdays"].map { |u| u["id"] }).to eq [user1.id, user3.id, user2.id]
+
+ SiteSetting.prioritize_username_in_ux = false
+
+ get "/cakeday/birthdays.json", params: { filter: "today" }
+
+ body = JSON.parse(response.body)
+ expect(body["birthdays"].map { |u| u["id"] }).to eq [user2.id, user3.id, user1.id]
+ end
+ end
+ end
+ end
+end
diff --git a/plugins/discourse-cakeday/spec/jobs/migrate_date_of_birth_to_users_table_spec.rb b/plugins/discourse-cakeday/spec/jobs/migrate_date_of_birth_to_users_table_spec.rb
new file mode 100644
index 00000000000..efd49c57036
--- /dev/null
+++ b/plugins/discourse-cakeday/spec/jobs/migrate_date_of_birth_to_users_table_spec.rb
@@ -0,0 +1,66 @@
+# frozen_string_literal: true
+
+require "rails_helper"
+
+describe Jobs::MigrateDateOfBirthToUsersTable do
+ let(:user) { Fabricate(:user) }
+
+ context "with YYYY-MM-DD" do
+ it "should migrate successfully" do
+ user.custom_fields["date_of_birth"] = "1904-05-02"
+ user.save!
+
+ described_class.new.execute({})
+
+ expect(user.reload.date_of_birth).to eq(Date.new(1904, 05, 02))
+ end
+ end
+
+ context "with DD-MM-YYYY" do
+ it "should migrate successfully" do
+ user.custom_fields["date_of_birth"] = "02-05-1904"
+ user.save!
+
+ described_class.new.execute({})
+
+ expect(user.reload.date_of_birth).to eq(Date.new(1904, 05, 02))
+ end
+ end
+
+ context "with DD/MM/YYYY" do
+ it "should migrate successfully" do
+ user.custom_fields["date_of_birth"] = "02/05/1904"
+ user.save!
+
+ described_class.new.execute({})
+
+ expect(user.reload.date_of_birth).to eq(Date.new(1904, 05, 02))
+ end
+ end
+
+ context "when custom field date is invalid" do
+ it "should ignore the error" do
+ user.custom_fields["date_of_birth"] = "02/13/1904"
+ user.save!
+
+ described_class.new.execute({})
+
+ expect(user.reload.date_of_birth).to eq(nil)
+ end
+ end
+
+ context "when custom field date is blank" do
+ it "should remove the custom field" do
+ user.custom_fields["date_of_birth"] = ""
+ user.save!
+
+ expect(UserCustomField.find_by(user_id: user.id).value).to eq("")
+
+ described_class.new.execute({})
+
+ expect(user.reload.date_of_birth).to eq(nil)
+
+ expect(UserCustomField.find_by(user_id: user.id)).to eq(nil)
+ end
+ end
+end
diff --git a/plugins/discourse-cakeday/spec/serializers/post_serializer_spec.rb b/plugins/discourse-cakeday/spec/serializers/post_serializer_spec.rb
new file mode 100644
index 00000000000..954f1634b06
--- /dev/null
+++ b/plugins/discourse-cakeday/spec/serializers/post_serializer_spec.rb
@@ -0,0 +1,48 @@
+# frozen_string_literal: true
+
+require "rails_helper"
+
+RSpec.describe PostSerializer do
+ let(:user) { Fabricate(:user, date_of_birth: "2017-04-05") }
+ let(:post) { Fabricate(:post, user: user) }
+
+ context "when user is logged in" do
+ let(:serializer) { described_class.new(post, scope: Guardian.new(user), root: false) }
+
+ it "should include both the user's birthdate and cakedate" do
+ expect(serializer.as_json[:user_birthdate]).to eq(user.date_of_birth)
+ expect(serializer.as_json[:user_cakedate]).to eq(user.created_at.strftime("%Y-%m-%d"))
+ end
+
+ it "should not include the user's cakedate when cakeday_enabled is false" do
+ SiteSetting.cakeday_enabled = false
+ expect(serializer.as_json.has_key?(:user_cakedate)).to eq(false)
+ end
+
+ it "should not include the user's birthdate when cakeday_birthday_enabled is false" do
+ SiteSetting.cakeday_birthday_enabled = false
+ expect(serializer.as_json.has_key?(:user_birthdate)).to eq(false)
+ end
+
+ context "when user has hidden their profile" do
+ before { user.user_option.update!(hide_profile: true) }
+
+ it "should not include the user's cakedate" do
+ expect(serializer.as_json.has_key?(:user_cakedate)).to eq(false)
+ end
+
+ it "should not include the user's birthdate" do
+ expect(serializer.as_json.has_key?(:user_birthdate)).to eq(false)
+ end
+ end
+ end
+
+ context "when user is not logged in" do
+ let(:serializer) { described_class.new(post, scope: Guardian.new, root: false) }
+
+ it "should not include the user's birthdate nor the cakedate" do
+ expect(serializer.as_json.has_key?(:user_birthdate)).to eq(false)
+ expect(serializer.as_json.has_key?(:user_cakedate)).to eq(false)
+ end
+ end
+end
diff --git a/plugins/discourse-cakeday/spec/serializers/user_serializer_spec.rb b/plugins/discourse-cakeday/spec/serializers/user_serializer_spec.rb
new file mode 100644
index 00000000000..140b2d2bece
--- /dev/null
+++ b/plugins/discourse-cakeday/spec/serializers/user_serializer_spec.rb
@@ -0,0 +1,47 @@
+# frozen_string_literal: true
+
+require "rails_helper"
+
+RSpec.describe UserSerializer do
+ let(:user) { Fabricate(:user, date_of_birth: "2017-04-05") }
+
+ context "when user is logged in" do
+ let(:serializer) { described_class.new(user, scope: Guardian.new(user), root: false) }
+
+ it "should include both the user's birthdate and cakedate" do
+ expect(serializer.as_json[:birthdate]).to eq(user.date_of_birth)
+ expect(serializer.as_json[:cakedate]).to eq(user.created_at.strftime("%Y-%m-%d"))
+ end
+
+ it "should not include the user's cakedate when cakeday_enabled is false" do
+ SiteSetting.cakeday_enabled = false
+ expect(serializer.as_json.has_key?(:cakedate)).to eq(false)
+ end
+
+ it "should not include the user's birthdate when cakeday_birthday_enabled is false" do
+ SiteSetting.cakeday_birthday_enabled = false
+ expect(serializer.as_json.has_key?(:birthdate)).to eq(false)
+ end
+
+ context "when user has hidden their profile" do
+ before { user.user_option.update!(hide_profile: true) }
+
+ it "should not include the user's cakedate" do
+ expect(serializer.as_json.has_key?(:user_cakedate)).to eq(false)
+ end
+
+ it "should not include the user's birthdate" do
+ expect(serializer.as_json.has_key?(:user_birthdate)).to eq(false)
+ end
+ end
+ end
+
+ context "when user is not logged in" do
+ let(:serializer) { described_class.new(user, scope: Guardian.new, root: false) }
+
+ it "should not include the user's birthdate nor the cakedate" do
+ expect(serializer.as_json.has_key?(:birthdate)).to eq(false)
+ expect(serializer.as_json.has_key?(:cakedate)).to eq(false)
+ end
+ end
+end
diff --git a/plugins/discourse-cakeday/spec/system/cakeday_user_summary_spec.rb b/plugins/discourse-cakeday/spec/system/cakeday_user_summary_spec.rb
new file mode 100644
index 00000000000..622c79836d9
--- /dev/null
+++ b/plugins/discourse-cakeday/spec/system/cakeday_user_summary_spec.rb
@@ -0,0 +1,37 @@
+# frozen_string_literal: true
+
+describe "Cakeday/Birthday emojis", type: :system do
+ CONTROL_DATE = Time.zone.local(2020, 6, 10)
+ fab!(:current_user) { Fabricate(:admin, date_of_birth: CONTROL_DATE.prev_year(14)) }
+
+ let(:user_page) { PageObjects::Pages::User.new }
+ let(:user_menu) { PageObjects::Components::UserMenu.new }
+
+ before { sign_in(current_user) }
+
+ context "for users with `created_at` and `date_of_birth` dates" do
+ fab!(:user_with_cakeday) { Fabricate(:user, created_at: CONTROL_DATE.prev_year) }
+
+ it "correctly shows emojis in users' profiles" do
+ page.driver.with_playwright_page { |pw_page| pw_page.clock.install(time: CONTROL_DATE) }
+
+ user_page.visit(user_with_cakeday)
+
+ expect(page).to have_current_path("/u/#{user_with_cakeday.username}/summary")
+ expect(user_page).to have_css(
+ ".user-cakeday div[title=\"#{I18n.t("js.user.anniversary.title")}\"] .emoji[alt='cake']",
+ )
+
+ user_menu.open.click_profile_tab
+ find(".summary").click
+
+ expect(page).to have_current_path("/u/#{current_user.username}/summary")
+ expect(user_page).not_to have_css(
+ ".user-cakeday div[title=\"#{I18n.t("js.user.anniversary.title")}\"] .emoji[alt='cake']",
+ )
+ expect(user_page).to have_css(
+ ".user-cakeday div[title=\"#{I18n.t("js.user.date_of_birth.user_title")}\"] .emoji[alt='birthday']",
+ )
+ end
+ end
+end
diff --git a/plugins/discourse-cakeday/spec/system/core_features_spec.rb b/plugins/discourse-cakeday/spec/system/core_features_spec.rb
new file mode 100644
index 00000000000..db86db283bd
--- /dev/null
+++ b/plugins/discourse-cakeday/spec/system/core_features_spec.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+RSpec.describe "Core features", type: :system do
+ before { enable_current_plugin }
+
+ it_behaves_like "having working core features"
+end
diff --git a/plugins/discourse-cakeday/test/javascripts/acceptance/cakeday-disconnected-test.js b/plugins/discourse-cakeday/test/javascripts/acceptance/cakeday-disconnected-test.js
new file mode 100644
index 00000000000..d2ae901665e
--- /dev/null
+++ b/plugins/discourse-cakeday/test/javascripts/acceptance/cakeday-disconnected-test.js
@@ -0,0 +1,208 @@
+import { click, visit } from "@ember/test-helpers";
+import { test } from "qunit";
+import { acceptance } from "discourse/tests/helpers/qunit-helpers";
+
+acceptance("Cakeday - disconnected", function (needs) {
+ needs.settings({
+ cakeday_enabled: true,
+ cakeday_emoji: "cake",
+ cakeday_birthday_enabled: true,
+ cakeday_birthday_emoji: "birthday",
+ navigation_menu: "legacy",
+ });
+
+ needs.pretender((server) => {
+ server.get("/t/11.json", (_, response) =>
+ response({
+ post_stream: {
+ posts: [
+ {
+ id: 14,
+ name: null,
+ username: "tgx",
+ avatar_template:
+ "/letter_avatar_proxy/v2/letter/t/ecae2f/{size}.png",
+ created_at: "2016-11-21T06:55:17.892Z",
+ cooked: "<p>This is a topic written for an acceptance test</p>",
+ post_number: 1,
+ post_type: 1,
+ updated_at: "2016-11-21T06:55:17.892Z",
+ reply_count: 0,
+ reply_to_post_number: null,
+ quote_count: 0,
+ avg_time: null,
+ incoming_link_count: 0,
+ reads: 1,
+ score: 0,
+ yours: true,
+ topic_id: 11,
+ topic_slug: "some-really-interesting-topic",
+ display_username: null,
+ primary_group_name: null,
+ primary_group_flair_url: null,
+ primary_group_flair_bg_color: null,
+ primary_group_flair_color: null,
+ version: 1,
+ can_edit: true,
+ can_delete: false,
+ can_recover: true,
+ can_wiki: true,
+ read: true,
+ user_title: null,
+ actions_summary: [
+ { id: 3, can_act: true },
+ { id: 4, can_act: true },
+ { id: 5, hidden: true, can_act: true },
+ { id: 7, can_act: true },
+ { id: 8, can_act: true },
+ ],
+ moderator: false,
+ admin: true,
+ staff: true,
+ user_id: 1,
+ hidden: false,
+ hidden_reason_id: null,
+ trust_level: 4,
+ deleted_at: null,
+ user_deleted: false,
+ edit_reason: null,
+ can_view_edit_history: true,
+ wiki: false,
+ },
+ ],
+ stream: [14],
+ },
+ timeline_lookup: [[1, 0]],
+ id: 11,
+ title: "Some really interesting topic",
+ fancy_title: "Some really interesting topic",
+ posts_count: 1,
+ created_at: "2016-11-21T06:55:17.771Z",
+ views: 1,
+ reply_count: 0,
+ participant_count: 1,
+ like_count: 0,
+ last_posted_at: "2016-11-21T06:55:17.892Z",
+ visible: true,
+ closed: false,
+ archived: false,
+ has_summary: false,
+ archetype: "regular",
+ slug: "some-really-interesting-topic",
+ category_id: 1,
+ word_count: 9,
+ deleted_at: null,
+ user_id: 1,
+ draft: null,
+ draft_key: "topic_11",
+ draft_sequence: 1,
+ posted: true,
+ unpinned: null,
+ pinned_globally: false,
+ pinned: false,
+ pinned_at: null,
+ pinned_until: null,
+ details: {
+ auto_close_at: null,
+ auto_close_hours: null,
+ auto_close_based_on_last_post: false,
+ created_by: {
+ id: 1,
+ username: "tgx",
+ avatar_template:
+ "/letter_avatar_proxy/v2/letter/t/ecae2f/{size}.png",
+ },
+ last_poster: {
+ id: 1,
+ username: "tgx",
+ avatar_template:
+ "/letter_avatar_proxy/v2/letter/t/ecae2f/{size}.png",
+ },
+ participants: [
+ {
+ id: 1,
+ username: "tgx",
+ avatar_template:
+ "/letter_avatar_proxy/v2/letter/t/ecae2f/{size}.png",
+ post_count: 1,
+ },
+ ],
+ suggested_topics: [
+ {
+ id: 8,
+ title: "Welcome to Discourse",
+ fancy_title: "Welcome to Discourse",
+ slug: "welcome-to-discourse",
+ posts_count: 1,
+ reply_count: 0,
+ highest_post_number: 1,
+ image_url: null,
+ created_at: "2016-11-21T06:53:31.836Z",
+ last_posted_at: "2016-11-21T06:53:31.877Z",
+ bumped: true,
+ bumped_at: "2016-11-21T06:53:31.877Z",
+ unseen: false,
+ pinned: true,
+ unpinned: null,
+ excerpt:
+ "The first paragraph of this pinned topic will be visible as a welcome message to all new visitors on your homepage. It&#39;s important! \n\nEdit this into a brief description of your community: \n\n\nWho is it for?\nWhat can they &hellip;",
+ visible: true,
+ closed: false,
+ archived: false,
+ bookmarked: null,
+ liked: null,
+ archetype: "regular",
+ like_count: 0,
+ views: 0,
+ category_id: 1,
+ posters: [
+ {
+ extras: "latest single",
+ description: "Original Poster, Most Recent Poster",
+ user: {
+ id: -1,
+ username: "system",
+ avatar_template:
+ "/letter_avatar_proxy/v2/letter/s/bcef8e/{size}.png",
+ },
+ },
+ ],
+ },
+ ],
+ notification_level: 3,
+ notifications_reason_id: 1,
+ can_move_posts: true,
+ can_edit: true,
+ can_delete: true,
+ can_recover: true,
+ can_remove_allowed_users: true,
+ can_invite_to: true,
+ can_create_post: true,
+ can_reply_as_new_topic: true,
+ can_flag_topic: true,
+ },
+ highest_post_number: 1,
+ last_read_post_number: 1,
+ last_read_post_id: 14,
+ deleted_by: null,
+ has_deleted: false,
+ actions_summary: [
+ { id: 4, count: 0, hidden: false, can_act: true },
+ { id: 7, count: 0, hidden: false, can_act: true },
+ { id: 8, count: 0, hidden: false, can_act: true },
+ ],
+ chunk_size: 20,
+ bookmarked: false,
+ })
+ );
+ });
+
+ test("User is not logged in", async function (assert) {
+ await visit("/");
+ await click("#toggle-hamburger-menu");
+
+ assert
+ .dom(".cakeday-link")
+ .doesNotExist("Cakeday is not shown to anonymous users");
+ });
+});
diff --git a/plugins/discourse-cakeday/test/javascripts/acceptance/cakeday-sidebar-test.js b/plugins/discourse-cakeday/test/javascripts/acceptance/cakeday-sidebar-test.js
new file mode 100644
index 00000000000..3eb50857a55
--- /dev/null
+++ b/plugins/discourse-cakeday/test/javascripts/acceptance/cakeday-sidebar-test.js
@@ -0,0 +1,131 @@
+import { click, currentURL, visit } from "@ember/test-helpers";
+import { test } from "qunit";
+import { cloneJSON } from "discourse/lib/object";
+import { acceptance } from "discourse/tests/helpers/qunit-helpers";
+import { i18n } from "discourse-i18n";
+import anniversariesFixtures from "../fixtures/anniversaries";
+import birthdaysFixtures from "../fixtures/birthdays";
+
+acceptance("Cakeday - Sidebar with cakeday disabled", function (needs) {
+ needs.user();
+
+ needs.settings({
+ cakeday_enabled: false,
+ cakeday_birthday_enabled: false,
+ navigation_menu: "sidebar",
+ });
+
+ test("anniversaries sidebar link is hidden", async function (assert) {
+ await visit("/");
+
+ await click(
+ ".sidebar-section[data-section-name='community'] .sidebar-more-section-links-details-summary"
+ );
+
+ assert
+ .dom(".sidebar-section-link[data-link-name='anniversaries']")
+ .doesNotExist("it does not display the anniversaries link in sidebar");
+ });
+
+ test("birthdays sidebar link is hidden", async function (assert) {
+ await visit("/");
+
+ await click(
+ ".sidebar-section[data-section-name='community'] .sidebar-more-section-links-details-summary"
+ );
+
+ assert
+ .dom(".sidebar-section-link[data-link-name='birthdays']")
+ .doesNotExist("it does not display the birthdays link in sidebar");
+ });
+});
+
+acceptance("Cakeday - Sidebar with cakeday enabled", function (needs) {
+ needs.user();
+
+ needs.settings({
+ cakeday_enabled: true,
+ cakeday_birthday_enabled: true,
+ navigation_menu: "sidebar",
+ });
+
+ needs.pretender((server, helper) => {
+ server.get("/cakeday/anniversaries", () =>
+ helper.response(cloneJSON(anniversariesFixtures))
+ );
+ server.get("/cakeday/birthdays", () =>
+ helper.response(cloneJSON(birthdaysFixtures))
+ );
+ });
+
+ test("clicking on anniversaries link", async function (assert) {
+ await visit("/");
+
+ await click(
+ ".sidebar-section[data-section-name='community'] .sidebar-more-section-links-details-summary"
+ );
+
+ assert
+ .dom(".sidebar-section-link[data-link-name='anniversaries']")
+ .hasText(
+ i18n("anniversaries.title"),
+ "displays the right text for the link"
+ );
+
+ assert
+ .dom(".sidebar-section-link[data-link-name='anniversaries']")
+ .hasAttribute(
+ "title",
+ i18n("anniversaries.title"),
+ "displays the right title for the link"
+ );
+
+ assert
+ .dom(
+ ".sidebar-section-link[data-link-name='anniversaries'] .sidebar-section-link-prefix.icon .d-icon-cake-candles"
+ )
+ .exists("displays the birthday-cake icon for the link");
+
+ await click(".sidebar-section-link[data-link-name='anniversaries']");
+
+ assert.strictEqual(
+ currentURL(),
+ "/cakeday/anniversaries/today",
+ "it navigates to the right page"
+ );
+ });
+
+ test("clicking on birthdays link", async function (assert) {
+ await visit("/");
+
+ await click(
+ ".sidebar-section[data-section-name='community'] .sidebar-more-section-links-details-summary"
+ );
+
+ assert
+ .dom(".sidebar-section-link[data-link-name='birthdays']")
+ .hasText(i18n("birthdays.title"), "displays the right text for the link");
+
+ assert
+ .dom(".sidebar-section-link[data-link-name='birthdays']")
+ .hasAttribute(
+ "title",
+ i18n("birthdays.title"),
+ "displays the right title for the link"
+ );
+
+ assert
+ .dom(
+ ".sidebar-section-link[data-link-name='birthdays'] .sidebar-section-link-prefix.icon .d-icon-cake-candles"
+ )
+ .exists("displays the birthday-cake icon for the link");
+
+ await click(".sidebar-section-link[data-link-name='birthdays']");
+
+ assert.strictEqual(
+ currentURL(),
+ "/cakeday/birthdays/today",
+ "it navigates to the right page"
+ );
+ });
+});
diff --git a/plugins/discourse-cakeday/test/javascripts/acceptance/cakeday-test.js b/plugins/discourse-cakeday/test/javascripts/acceptance/cakeday-test.js
new file mode 100644
index 00000000000..d6d56bb70bb
--- /dev/null
+++ b/plugins/discourse-cakeday/test/javascripts/acceptance/cakeday-test.js
@@ -0,0 +1,257 @@
+import { click, visit } from "@ember/test-helpers";
+import { test } from "qunit";
+import { acceptance, queryAll } from "discourse/tests/helpers/qunit-helpers";
+import { i18n } from "discourse-i18n";
+
+["enabled", "disabled"].forEach((postStreamMode) => {
+ acceptance(
+ `Cakeday (glimmer_post_stream_mode = ${postStreamMode})`,
+ function (needs) {
+ needs.user();
+ needs.settings({
+ glimmer_post_stream_mode: postStreamMode,
+ cakeday_enabled: true,
+ cakeday_emoji: "cake",
+ cakeday_birthday_enabled: true,
+ cakeday_birthday_emoji: "birthday",
+ });
+
+ needs.pretender((server, { response }) => {
+ server.get("/t/11.json", () =>
+ response({
+ post_stream: {
+ posts: [
+ {
+ id: 14,
+ name: null,
+ username: "tgx",
+ avatar_template:
+ "/letter_avatar_proxy/v2/letter/t/ecae2f/{size}.png",
+ created_at: "2016-11-21T06:55:17.892Z",
+ cooked:
+ "<p>This is a topic written for an acceptance test</p>",
+ post_number: 1,
+ post_type: 1,
+ updated_at: "2016-11-21T06:55:17.892Z",
+ reply_count: 0,
+ reply_to_post_number: null,
+ quote_count: 0,
+ avg_time: null,
+ incoming_link_count: 0,
+ reads: 1,
+ score: 0,
+ yours: true,
+ topic_id: 11,
+ topic_slug: "some-really-interesting-topic",
+ display_username: null,
+ primary_group_name: null,
+ primary_group_flair_url: null,
+ primary_group_flair_bg_color: null,
+ primary_group_flair_color: null,
+ version: 1,
+ can_edit: true,
+ can_delete: false,
+ can_recover: true,
+ can_wiki: true,
+ read: true,
+ user_title: null,
+ actions_summary: [
+ { id: 3, can_act: true },
+ { id: 4, can_act: true },
+ { id: 5, hidden: true, can_act: true },
+ { id: 7, can_act: true },
+ { id: 8, can_act: true },
+ ],
+ moderator: false,
+ admin: true,
+ staff: true,
+ user_id: 1,
+ hidden: false,
+ hidden_reason_id: null,
+ trust_level: 4,
+ deleted_at: null,
+ user_deleted: false,
+ edit_reason: null,
+ can_view_edit_history: true,
+ wiki: false,
+ user_cakedate: moment()
+ .subtract(4, "year")
+ .format("YYYY-MM-DD"),
+ user_birthdate: moment().format("YYYY-MM-DD"),
+ },
+ ],
+ stream: [14],
+ },
+ timeline_lookup: [[1, 0]],
+ id: 11,
+ title: "Some really interesting topic",
+ fancy_title: "Some really interesting topic",
+ posts_count: 1,
+ created_at: "2016-11-21T06:55:17.771Z",
+ views: 1,
+ reply_count: 0,
+ participant_count: 1,
+ like_count: 0,
+ last_posted_at: "2016-11-21T06:55:17.892Z",
+ visible: true,
+ closed: false,
+ archived: false,
+ has_summary: false,
+ archetype: "regular",
+ slug: "some-really-interesting-topic",
+ category_id: 1,
+ word_count: 9,
+ deleted_at: null,
+ user_id: 1,
+ draft: null,
+ draft_key: "topic_11",
+ draft_sequence: 1,
+ posted: true,
+ unpinned: null,
+ pinned_globally: false,
+ pinned: false,
+ pinned_at: null,
+ pinned_until: null,
+ details: {
+ auto_close_at: null,
+ auto_close_hours: null,
+ auto_close_based_on_last_post: false,
+ created_by: {
+ id: 1,
+ username: "tgx",
+ avatar_template:
+ "/letter_avatar_proxy/v2/letter/t/ecae2f/{size}.png",
+ },
+ last_poster: {
+ id: 1,
+ username: "tgx",
+ avatar_template:
+ "/letter_avatar_proxy/v2/letter/t/ecae2f/{size}.png",
+ },
+ participants: [
+ {
+ id: 1,
+ username: "tgx",
+ avatar_template:
+ "/letter_avatar_proxy/v2/letter/t/ecae2f/{size}.png",
+ post_count: 1,
+ },
+ ],
+ suggested_topics: [
+ {
+ id: 8,
+ title: "Welcome to Discourse",
+ fancy_title: "Welcome to Discourse",
+ slug: "welcome-to-discourse",
+ posts_count: 1,
+ reply_count: 0,
+ highest_post_number: 1,
+ image_url: null,
+ created_at: "2016-11-21T06:53:31.836Z",
+ last_posted_at: "2016-11-21T06:53:31.877Z",
+ bumped: true,
+ bumped_at: "2016-11-21T06:53:31.877Z",
+ unseen: false,
+ pinned: true,
+ unpinned: null,
+ excerpt:
+ "The first paragraph of this pinned topic will be visible as a welcome message to all new visitors on your homepage. It&#39;s important! \n\nEdit this into a brief description of your community: \n\n\nWho is it for?\nWhat can they &hellip;",
+ visible: true,
+ closed: false,
+ archived: false,
+ bookmarked: null,
+ liked: null,
+ archetype: "regular",
+ like_count: 0,
+ views: 0,
+ category_id: 1,
+ posters: [
+ {
+ extras: "latest single",
+ description: "Original Poster, Most Recent Poster",
+ user: {
+ id: -1,
+ username: "system",
+ avatar_template:
+ "/letter_avatar_proxy/v2/letter/s/bcef8e/{size}.png",
+ },
+ },
+ ],
+ },
+ ],
+ notification_level: 3,
+ notifications_reason_id: 1,
+ can_move_posts: true,
+ can_edit: true,
+ can_delete: true,
+ can_recover: true,
+ can_remove_allowed_users: true,
+ can_invite_to: true,
+ can_create_post: true,
+ can_reply_as_new_topic: true,
+ can_flag_topic: true,
+ },
+ highest_post_number: 1,
+ last_read_post_number: 1,
+ last_read_post_id: 14,
+ deleted_by: null,
+ has_deleted: false,
+ actions_summary: [
+ { id: 4, count: 0, hidden: false, can_act: true },
+ { id: 7, count: 0, hidden: false, can_act: true },
+ { id: 8, count: 0, hidden: false, can_act: true },
+ ],
+ chunk_size: 20,
+ bookmarked: false,
+ })
+ );
+
+ server.get("/u/tgx.json", () =>
+ response({
+ user: {
+ birthdate: moment().format("YYYY-MM-DD"),
+ cakedate: moment().subtract(4, "year").format("YYYY-MM-DD"),
+ },
+ })
+ );
+
+ server.get("/u/tgx/card.json", () =>
+ response({
+ user: {
+ birthdate: moment().format("YYYY-MM-DD"),
+ cakedate: moment().subtract(4, "year").format("YYYY-MM-DD"),
+ },
+ })
+ );
+ });
+
+ test("Anniversary emoji", async function (assert) {
+ await visit("/t/some-really-interesting-topic/11");
+
+ const posterIcons = queryAll(".poster-icon");
+
+ assert
+ .dom(posterIcons[0])
+ .hasAttribute("title", i18n("user.anniversary.title"));
+ assert
+ .dom(posterIcons[1])
+ .hasAttribute("title", i18n("user.date_of_birth.title"));
+ assert.dom("img.emoji", posterIcons[0]).exists({ count: 1 });
+ assert.dom("img.emoji", posterIcons[1]).exists({ count: 1 });
+
+ await click(".trigger-user-card a[data-user-card]");
+
+ const emojiImages = queryAll(".emoji-images div");
+
+ assert
+ .dom(emojiImages[1])
+ .hasAttribute("title", i18n("user.anniversary.title"));
+ assert
+ .dom(emojiImages[0])
+ .hasAttribute("title", i18n("user.date_of_birth.title"));
+ assert.strictEqual(emojiImages[0].children.length, 1);
+ assert.strictEqual(emojiImages[1].children.length, 1);
+ });
+ }
+ );
+});
diff --git a/plugins/discourse-cakeday/test/javascripts/fixtures/anniversaries.js b/plugins/discourse-cakeday/test/javascripts/fixtures/anniversaries.js
new file mode 100644
index 00000000000..44a65c7f3b9
--- /dev/null
+++ b/plugins/discourse-cakeday/test/javascripts/fixtures/anniversaries.js
@@ -0,0 +1,5 @@
+export default {
+ anniversaries: [],
+ total_rows_anniversaries: 0,
+ load_more_anniversaries: "/cakeday/anniversaries?filter=today&page=1",
+};
diff --git a/plugins/discourse-cakeday/test/javascripts/fixtures/birthdays.js b/plugins/discourse-cakeday/test/javascripts/fixtures/birthdays.js
new file mode 100644
index 00000000000..13961da073f
--- /dev/null
+++ b/plugins/discourse-cakeday/test/javascripts/fixtures/birthdays.js
@@ -0,0 +1,5 @@
+export default {
+ birthdays: [],
+ total_rows_birthdays: 0,
+ load_more_birthdays: "/cakeday/birthdays?filter=today&page=1",
+};
diff --git a/translator.yml b/translator.yml
index 39cd6ee0d5f..933296cd1bf 100644
--- a/translator.yml
+++ b/translator.yml
@@ -302,3 +302,10 @@ files:
- source_path: plugins/discourse-ai/config/locales/server.en.yml
destination_path: plugins/ai/server.yml
label: ai
+
+ - source_path: plugins/discourse-cakeday/config/locales/client.en.yml
+ destination_path: plugins/cakeday/client.yml
+ label: cakeday
+ - source_path: plugins/discourse-cakeday/config/locales/server.en.yml
+ destination_path: plugins/cakeday/server.yml
+ label: cakeday