Repository: spotify/backstage
File: plugins/notifications/src/translation.ts (TypeScript)

Code before:
/*
 * Copyright 2025 The Backstage Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import { createTranslationRef } from '@backstage/core-plugin-api/alpha';

/** @alpha */
export const notificationsTranslationRef = createTranslationRef({
  id: 'plugin.notifications',
  messages: {
    notificationsPage: {
      title: 'Notifications',
      tableTitle: {
        all_one: 'All notifications ({{count}})',
        all_other: 'All notifications ({{count}})',
        saved_one: 'Saved notifications ({{count}})',
        saved_other: 'Saved notifications ({{count}})',
        unread_one: 'Unread notifications ({{count}})',
        unread_other: 'Unread notifications ({{count}})',
        read_one: 'Read notifications ({{count}})',
        read_other: 'Read notifications ({{count}})',
      },
    },
    filters: {
      title: 'Filters',
      view: {
        label: 'View',
        unread: 'Unread notifications',
        read: 'Read notifications',
        saved: 'Saved',

Review comment (suggestion):
On the alpha we're on the new frontend system - so we should import this from there (and then update the API reports)

```suggestion
import { createTranslationRef } from '@backstage/frontend-plugin-api';
```

Code after:
/*
 * Copyright 2025 The Backstage Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import { createTranslationRef } from '@backstage/frontend-plugin-api';

/** @alpha */
export const notificationsTranslationRef = createTranslationRef({
  id: 'plugin.notifications',
  messages: {
    notificationsPage: {
      title: 'Notifications',
      tableTitle: {
        all_one: 'All notifications ({{count}})',
        all_other: 'All notifications ({{count}})',
        saved_one: 'Saved notifications ({{count}})',
        saved_other: 'Saved notifications ({{count}})',
        unread_one: 'Unread notifications ({{count}})',
        unread_other: 'Unread notifications ({{count}})',
        read_one: 'Read notifications ({{count}})',
        read_other: 'Read notifications ({{count}})',
      },
    },
    filters: {
      title: 'Filters',
      view: {
        label: 'View',
        unread: 'Unread notifications',
        read: 'Read notifications',
        saved: 'Saved',