Skip to content

Commit 426f383

Browse files
committed
Add locale file
1 parent 6f02671 commit 426f383

1 file changed

Lines changed: 79 additions & 0 deletions

File tree

locales/en.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
en:
2+
exceptions:
3+
internal_server_error:
4+
title: 'Internal Server Error'
5+
detail: 'Internal Server Error'
6+
invalid_resource:
7+
title: 'Invalid resource'
8+
detail: "%{resource} is not a valid resource."
9+
record_not_found:
10+
title: 'Record not found'
11+
detail: "The record identified by %{id} could not be found."
12+
unsupported_media_type:
13+
title: 'Unsupported media type'
14+
detail: "All requests that create or update must use the '%{needed_media_type}' Content-Type. This request specified '%{media_type}.'"
15+
has_many_relation:
16+
title: 'Relation exists'
17+
detail: "The relation to %{id} already exists."
18+
to_many_set_replacement_forbidden:
19+
title: 'Complete replacement forbidden'
20+
detail: 'Complete replacement forbidden for this relationship'
21+
invalid_filter_syntax:
22+
title: 'Invalid filters syntax'
23+
detail: "%{filters} is not a valid syntax for filtering."
24+
filter_not_allowed:
25+
title: "Filter not allowed"
26+
detail: "%{filter} is not allowed."
27+
invalid_filter_value:
28+
title: 'Invalid filter value'
29+
detail: "%{value} is not a valid value for %{filter}."
30+
invalid_field_value:
31+
title: 'Invalid field value'
32+
detail: "%{value} is not a valid value for %{field}."
33+
invalid_field_format:
34+
title: 'Invalid field format'
35+
detail: 'Fields must specify a type.'
36+
invalid_links_object:
37+
title: 'Invalid Links Object'
38+
detail: 'Data is not a valid Links Object.'
39+
type_mismatch:
40+
title: 'Type Mismatch'
41+
detail: "%{type} is not a valid type for this operation."
42+
invalid_field:
43+
title: 'Invalid field'
44+
detail: "%{field} is not a valid field for %{type}."
45+
invalid_include:
46+
title: 'Invalid field'
47+
detail: "%{relationship} is not a valid relationship of %{resource}"
48+
invalid_sort_criteria:
49+
title: 'Invalid sort criteria'
50+
detail: "%{sort_criteria} is not a valid sort criteria for %{resource}"
51+
parameters_not_allowed:
52+
title: 'Param not allowed'
53+
detail: "%{param} is not allowed."
54+
parameter_missing:
55+
title: 'Missing Parameter'
56+
detail: "The required parameter, %{param}, is missing."
57+
count_mismatch:
58+
title: 'Count to key mismatch'
59+
detail: 'The resource collection does not contain the same number of objects as the number of keys.'
60+
key_not_included_in_url:
61+
title: 'Key is not included in URL'
62+
detail: "The URL does not support the key %{key}"
63+
missing_key:
64+
title: 'A key is required'
65+
detail: 'The resource object does not contain a key.'
66+
record_locked:
67+
title: 'Locked resource'
68+
save_failed:
69+
title: 'Save failed or was cancelled'
70+
detail: 'Save failed or was cancelled'
71+
invalid_page_object:
72+
title: 'Invalid Page Object'
73+
detail: 'Invalid Page Object.'
74+
page_parameters_not_allowed:
75+
title: 'Page parameter not allowed'
76+
detail: "%{param} is not an allowed page parameter."
77+
invalid_page_value:
78+
title: 'Invalid page value'
79+
detail: "%{value} is not a valid value for %{page} page parameter."

0 commit comments

Comments
 (0)