Files
Desktop/build/intl-linter/rules/noOrdinal.std.ts
Fedor Indutny 44076ece79 Rename files
2025-10-16 23:45:44 -07:00

18 lines
404 B
TypeScript

// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { rule } from '../utils/rule.std.js';
export default rule('noOrdinal', context => {
return {
enterPlural(element) {
if (element.pluralType === 'ordinal') {
context.report(
'{selectordinal} is not supported by Smartling',
element.location
);
}
},
};
});